forked from OSchip/llvm-project
[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:
parent
5413510e32
commit
7626759702
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue