[PATCH] D98499: [clangd] Introduce ASTHooks to FeatureModules
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 13 06:23:09 PDT 2021
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/FeatureModule.h:106
+ struct ASTListener {
+ virtual ~ASTListener() = default;
+
----------------
comment: listeners are destroyed once the AST is built.
================
Comment at: clang-tools-extra/clangd/FeatureModule.h:181
+/// Helper to get all the ast listeners available.
+std::vector<std::unique_ptr<FeatureModule::ASTListener>>
----------------
this seems like a slightly weird thing to have in FeatureModule.h, I'd be tempted to inline it in the callsites instead, but up to you.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98499/new/
https://reviews.llvm.org/D98499
More information about the cfe-commits
mailing list