summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2015-03-17 18:03:42 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2015-03-17 18:03:42 +0000
commit7fe22f66d073d30de7be26b91bc4d64deaa46ec9 (patch)
treea145c7d759cc854398e3eefc1e995b75611ed980 /clang/lib
parent24fcae8fa03ee609d2f8e65b028a6198ba2a2411 (diff)
downloadbcm5719-llvm-7fe22f66d073d30de7be26b91bc4d64deaa46ec9.tar.gz
bcm5719-llvm-7fe22f66d073d30de7be26b91bc4d64deaa46ec9.zip
Comment parsing: move a diagnostic to the correct group.
Based on a patch by LE GARREC Vincent. llvm-svn: 232511
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 7a70cddf9d0..01bd42ce80c 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -9827,9 +9827,12 @@ void Sema::ActOnDocumentableDecl(Decl *D) {
void Sema::ActOnDocumentableDecls(ArrayRef<Decl *> Group) {
// Don't parse the comment if Doxygen diagnostics are ignored.
if (Group.empty() || !Group[0])
- return;
+ return;
- if (Diags.isIgnored(diag::warn_doc_param_not_found, Group[0]->getLocation()))
+ if (Diags.isIgnored(diag::warn_doc_param_not_found,
+ Group[0]->getLocation()) &&
+ Diags.isIgnored(diag::warn_unknown_comment_command_name,
+ Group[0]->getLocation()))
return;
if (Group.size() >= 2) {
OpenPOWER on IntegriCloud