diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 21:44:16 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-24 21:44:16 +0000 |
commit | 6582277bfc8bb587602e2c0689b6b2ff4b9bef53 (patch) | |
tree | bae823995050b02329a1542197d002c3b57c48bf /include/clang/Basic/DiagnosticCommentKinds.td | |
parent | 56df4a9e0461d4dfb2a740cb6b0ce531d6c82538 (diff) |
Comment diagnostics: add warning for multiple \param commands with duplicate
parameter names.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCommentKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticCommentKinds.td | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticCommentKinds.td b/include/clang/Basic/DiagnosticCommentKinds.td index 890606a85a..91aa5f19e6 100644 --- a/include/clang/Basic/DiagnosticCommentKinds.td +++ b/include/clang/Basic/DiagnosticCommentKinds.td @@ -63,6 +63,13 @@ def warn_doc_param_not_attached_to_a_function_decl : Warning< "a function declaration">, InGroup<Documentation>, DefaultIgnore; +def warn_doc_param_duplicate : Warning< + "parameter '%0' is already documented">, + InGroup<Documentation>, DefaultIgnore; + +def note_doc_param_previous : Note< + "previous documentation">; + def warn_doc_param_not_found : Warning< "parameter '%0' not found in the function declaration">, InGroup<Documentation>, DefaultIgnore; |