[PATCH] D47065: [clangd] Enable parsing of non-doxygen comments in global-symbol-builder
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 30 03:47:10 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL333528: [clangd] Enable parsing of non-doxygen comments in global-symbol-builder (authored by ibiryukov, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D47065
Files:
clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
Index: clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
===================================================================
--- clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
+++ clang-tools-extra/trunk/clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
@@ -73,6 +73,12 @@
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();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47065.149081.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180530/7d8ad973/attachment.bin>
More information about the cfe-commits
mailing list