summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-05-08 23:38:56 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-05-08 23:38:56 +0000
commitd3d3d270037b4c69eb131c9a8ac26df857185bae (patch)
treef9b3cfb3a670df0a595388b184f0e0c9d46154cc /clang
parentdbe445fdd8ba62276b63c7cbcbea7872975bfc78 (diff)
downloadbcm5719-llvm-d3d3d270037b4c69eb131c9a8ac26df857185bae.tar.gz
bcm5719-llvm-d3d3d270037b4c69eb131c9a8ac26df857185bae.zip
put noisy "unknown command tag name" warning
under -Wdocumentation-unknown-command and off by default. patch by Dmitri Gribenko. llvm-svn: 181487
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/DiagnosticCommentKinds.td3
-rw-r--r--clang/include/clang/Basic/DiagnosticGroups.td4
2 files changed, 5 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticCommentKinds.td b/clang/include/clang/Basic/DiagnosticCommentKinds.td
index beeb23fcb11..49781fec9a9 100644
--- a/clang/include/clang/Basic/DiagnosticCommentKinds.td
+++ b/clang/include/clang/Basic/DiagnosticCommentKinds.td
@@ -157,7 +157,8 @@ def warn_verbatim_block_end_without_start : Warning<
InGroup<Documentation>, DefaultIgnore;
def warn_unknown_comment_command_name : Warning<
- "unknown command tag name">, InGroup<Documentation>, DefaultIgnore;
+ "unknown command tag name">,
+ InGroup<DocumentationUnknownCommand>, DefaultIgnore;
def warn_correct_comment_command_name : Warning<
"unknown command tag name '%0'; did you mean '%1'?">,
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index d7d20feb4d1..d5f777d3d71 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -68,7 +68,9 @@ def : DiagGroup<"discard-qual">;
def : DiagGroup<"div-by-zero">;
def DocumentationHTML : DiagGroup<"documentation-html">;
-def DocumentationPedantic : DiagGroup<"documentation-pedantic">;
+def DocumentationUnknownCommand : DiagGroup<"documentation-unknown-command">;
+def DocumentationPedantic : DiagGroup<"documentation-pedantic",
+ [DocumentationUnknownCommand]>;
def DocumentationDeprecatedSync : DiagGroup<"documentation-deprecated-sync">;
def Documentation : DiagGroup<"documentation",
[DocumentationHTML,
OpenPOWER on IntegriCloud