[Lldb-commits] [lldb] Make only one function that needs to be implemented when searching for types (PR #74786)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 11 11:21:10 PST 2023


================
@@ -122,6 +106,9 @@ class TypeSystem : public PluginInterface,
   virtual CompilerType DeclGetFunctionArgumentType(void *opaque_decl,
                                                    size_t arg_idx);
 
+  virtual std::vector<lldb_private::CompilerContext>
+  DeclGetCompilerContext(void *opaque_decl);
----------------
clayborg wrote:

I would rather not put any limitations on TypeSystem plug-ins in case they can be more efficient if they can put off parsing information about a type until accessors are called on the `Decl` objects.

https://github.com/llvm/llvm-project/pull/74786


More information about the lldb-commits mailing list