[clang-tools-extra] r333528 - [clangd] Enable parsing of non-doxygen comments in global-symbol-builder
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed May 30 03:43:00 PDT 2018
Author: ibiryukov
Date: Wed May 30 03:43:00 2018
New Revision: 333528
URL: http://llvm.org/viewvc/llvm-project?rev=333528&view=rev
Log:
[clangd] Enable parsing of non-doxygen comments in global-symbol-builder
Reviewers: ioeric, sammccall
Reviewed By: ioeric
Subscribers: klimek, MaskRay, jkorous, cfe-commits
Differential Revision: https://reviews.llvm.org/D47065
Modified:
clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
Modified: clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp?rev=333528&r1=333527&r2=333528&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp Wed May 30 03:43:00 2018
@@ -73,6 +73,12 @@ public:
return WrapperFrontendAction::CreateASTConsumer(CI, InFile);
}
+ bool BeginInvocation(CompilerInstance &CI) override {
+ // We want all comments, not just the doxygen ones.
+ CI.getLangOpts().CommentOpts.ParseAllComments = true;
+ return WrapperFrontendAction::BeginInvocation(CI);
+ }
+
void EndSourceFileAction() override {
WrapperFrontendAction::EndSourceFileAction();
More information about the cfe-commits
mailing list