@@ -66,9 +66,8 @@ SqliteModuleRegistration MakeSqliteModule(std::string name,
6666 reg.name = std::move (name);
6767 reg.module = &Module::kModule ;
6868 reg.context = ctx;
69- reg.is_state_manager =
70- std::is_base_of_v<sqlite::ModuleStateManagerBase,
71- typename Module::Context>;
69+ reg.is_state_manager = std::is_base_of_v<sqlite::ModuleStateManagerBase,
70+ typename Module::Context>;
7271 return reg;
7372}
7473
@@ -84,9 +83,8 @@ SqliteModuleRegistration MakeSqliteModule(
8483 reg.destructor = [](void * p) {
8584 delete static_cast <typename Module::Context*>(p);
8685 };
87- reg.is_state_manager =
88- std::is_base_of_v<sqlite::ModuleStateManagerBase,
89- typename Module::Context>;
86+ reg.is_state_manager = std::is_base_of_v<sqlite::ModuleStateManagerBase,
87+ typename Module::Context>;
9088 return reg;
9189}
9290
@@ -145,18 +143,15 @@ class PluginBase {
145143// 1. Compile-time: forces #include of dep headers -> forces GN dep
146144// 2. Link-time: if dep's .cc isn't compiled, GN dep missing -> build fails
147145// 3. Runtime: topological sort verifies all deps are registered
148- template <typename Self,
149- typename Storage = void ,
150- typename ... Deps>
146+ template <typename Self, typename Storage = void , typename ... Deps>
151147class Plugin : public PluginBase {
152148 public:
153149 static constexpr const void * kPluginId = PluginTag<Self>::Id();
154150 static constexpr std::array<const void *, sizeof ...(Deps)> kDepIds = {
155151 PluginTag<Deps>::Id ()...};
156152
157153 // Override these in the concrete plugin class.
158- virtual std::unique_ptr<Storage> CreatePluginStorage (
159- TraceProcessorContext*) {
154+ virtual std::unique_ptr<Storage> CreatePluginStorage (TraceProcessorContext*) {
160155 return nullptr ;
161156 }
162157 virtual void RegisterImporters (TraceProcessorContext*, Storage*) {}
@@ -167,26 +162,23 @@ class Plugin : public PluginBase {
167162 TraceProcessorContext*,
168163 Storage*,
169164 std::vector<std::unique_ptr<StaticTableFunction>>&) {}
170- virtual void RegisterSqliteModules (
171- TraceProcessorContext*,
172- Storage*,
173- std::vector<SqliteModuleRegistration>&) {}
165+ virtual void RegisterSqliteModules (TraceProcessorContext*,
166+ Storage*,
167+ std::vector<SqliteModuleRegistration>&) {}
174168
175169 private:
176170 std::unique_ptr<Destructible> CreateStorage (
177171 TraceProcessorContext* ctx) final {
178172 return static_cast <Self*>(this )->CreatePluginStorage (ctx);
179173 }
180- void RegisterImporters (TraceProcessorContext* ctx,
181- Destructible* s) final {
182- static_cast <Self*>(this )->RegisterImporters (
183- ctx, static_cast <Storage*>(s));
174+ void RegisterImporters (TraceProcessorContext* ctx, Destructible* s) final {
175+ static_cast <Self*>(this )->RegisterImporters (ctx, static_cast <Storage*>(s));
184176 }
185177 void RegisterDataframes (TraceProcessorContext* ctx,
186178 Destructible* s,
187179 std::vector<PluginDataframe>& tables) final {
188- static_cast <Self*>(this )->RegisterDataframes (
189- ctx, static_cast <Storage*>(s), tables);
180+ static_cast <Self*>(this )->RegisterDataframes (ctx, static_cast <Storage*>(s),
181+ tables);
190182 }
191183 void RegisterStaticTableFunctions (
192184 TraceProcessorContext* ctx,
@@ -218,9 +210,8 @@ class Plugin<Self, void, Deps...> : public PluginBase {
218210 virtual void RegisterStaticTableFunctions (
219211 TraceProcessorContext*,
220212 std::vector<std::unique_ptr<StaticTableFunction>>&) {}
221- virtual void RegisterSqliteModules (
222- TraceProcessorContext*,
223- std::vector<SqliteModuleRegistration>&) {}
213+ virtual void RegisterSqliteModules (TraceProcessorContext*,
214+ std::vector<SqliteModuleRegistration>&) {}
224215
225216 private:
226217 void RegisterImporters (TraceProcessorContext* ctx, Destructible*) final {
0 commit comments