Skip to content
Snippets Groups Projects
Commit d3d3d270 authored by Fariborz Jahanian's avatar Fariborz Jahanian
Browse files

put noisy "unknown command tag name" warning

under -Wdocumentation-unknown-command and off by default.
patch by Dmitri Gribenko.

llvm-svn: 181487
parent dbe445fd
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,8 @@ def warn_verbatim_block_end_without_start : Warning< ...@@ -157,7 +157,8 @@ def warn_verbatim_block_end_without_start : Warning<
InGroup<Documentation>, DefaultIgnore; InGroup<Documentation>, DefaultIgnore;
def warn_unknown_comment_command_name : Warning< 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< def warn_correct_comment_command_name : Warning<
"unknown command tag name '%0'; did you mean '%1'?">, "unknown command tag name '%0'; did you mean '%1'?">,
......
...@@ -68,7 +68,9 @@ def : DiagGroup<"discard-qual">; ...@@ -68,7 +68,9 @@ def : DiagGroup<"discard-qual">;
def : DiagGroup<"div-by-zero">; def : DiagGroup<"div-by-zero">;
def DocumentationHTML : DiagGroup<"documentation-html">; 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 DocumentationDeprecatedSync : DiagGroup<"documentation-deprecated-sync">;
def Documentation : DiagGroup<"documentation", def Documentation : DiagGroup<"documentation",
[DocumentationHTML, [DocumentationHTML,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment