[clang] [clang][Index] Use HeuristicResolver in libIndex (PR #125153)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon May 5 18:20:11 PDT 2025


================
@@ -25,6 +26,17 @@ static bool isGeneratedDecl(const Decl *D) {
   return false;
 }
 
+IndexingContext::IndexingContext(IndexingOptions IndexOpts,
+                                 IndexDataConsumer &DataConsumer)
+    : IndexOpts(IndexOpts), DataConsumer(DataConsumer) {}
+
+IndexingContext::~IndexingContext() = default;
----------------
HighCommander4 wrote:

That's right; the motivation is to avoid unnecessary header dependencies (e.g. `IndexingContext.h` including `HeuristicResolver.h`), to limit incremental rebuild times when a header is modified.

I'm happy to add a comment.

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


More information about the cfe-commits mailing list