It runs immediatelly before FrontendAction::Execute() with a mutable
CompilerInstance, allowing FeatureModules to register callbacks, remap
files, etc.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
thanks, lgtm!
clang-tools-extra/clangd/FeatureModule.h | ||
---|---|---|
109 | nit: triple slashes | |
109 | comment still says preamble build. I'd either talk more about Allows customizing the compiler instance before starting the execution on input or get rid of CompilerInvocation in that list. as in theory modifications to only parts of it will be respected (since we've already issued beginsourcefile on compiler instance and created some structs with whatever we had in compiler invocation prior to this call). | |
clang-tools-extra/clangd/ParsedAST.cpp | ||
553 | could you have a comment that says we must perform this after Action::BeginSourceFile to ensure PP and rest of the helper structs are initialized and closer to the end so that other modifications we do in clangd (like adjusting diag severities/marking main file as include-guarded) is visible to modules? to make sure it doesn't get moved around without these in mind. | |
clang-tools-extra/clangd/Preamble.cpp | ||
72 | nit: std::move | |
117 | could we move this to the bottom, to make it closer to the way parsedast calls it? | |
488 | nit: drop braces |
nit: triple slashes