[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 13:10:39 PST 2025


================
@@ -339,6 +341,10 @@ class ModuleDepCollector final : public DependencyCollector {
   std::optional<P1689ModuleInfo> ProvidedStdCXXModule;
   std::vector<P1689ModuleInfo> RequiredStdCXXModules;
 
+  /// A pointer to the preprocessor callback so we can invoke it directly
+  /// if needed.
+  ModuleDepCollectorPP *CollectorPPPtr = nullptr;
----------------
benlangmuir wrote:

Could we add a brief note to the doc comment about this? I would just say something like
> Owned by the PPCallbacks instance.

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


More information about the cfe-commits mailing list