[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

llvm-svn: 333528
This commit is contained in:
Ilya Biryukov 2018-05-30 10:43:00 +00:00
parent 5413510e32
commit 7626759702
1 changed files with 6 additions and 0 deletions

View File

@ -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();