From 5d2bb935afee34fa1e6fc05993a874c98a5bd1af Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 8 May 2013 23:38:56 +0000 Subject: [PATCH] put noisy "unknown command tag name" warning under -Wdocumentation-unknown-command and off by default. patch by Dmitri Gribenko. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181487 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticCommentKinds.td | 3 ++- include/clang/Basic/DiagnosticGroups.td | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/DiagnosticCommentKinds.td b/include/clang/Basic/DiagnosticCommentKinds.td index beeb23fcb1..49781fec9a 100644 --- a/include/clang/Basic/DiagnosticCommentKinds.td +++ b/include/clang/Basic/DiagnosticCommentKinds.td @@ -157,7 +157,8 @@ def warn_verbatim_block_end_without_start : Warning< InGroup, DefaultIgnore; def warn_unknown_comment_command_name : Warning< - "unknown command tag name">, InGroup, DefaultIgnore; + "unknown command tag name">, + InGroup, DefaultIgnore; def warn_correct_comment_command_name : Warning< "unknown command tag name '%0'; did you mean '%1'?">, diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index d7d20feb4d..d5f777d3d7 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/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, -- 2.40.0