diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-05 01:05:07 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-05 01:05:07 +0000 |
commit | 2a268f2629b49958427e8eb02f2c3d565be71acc (patch) | |
tree | 9b44a3b1d9facc7579362f6c2a0f7d489668598f /include/clang/Basic/DiagnosticCommentKinds.td | |
parent | 5aff3f1e9a66fa72576a6b04c8c319c17e0360c6 (diff) |
doc parsing. We want to issue a strong warning when
an @function comment is not followed by a function decl.
// rdar://13094352
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCommentKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticCommentKinds.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticCommentKinds.td b/include/clang/Basic/DiagnosticCommentKinds.td index 829f98dfd7..5f28625151 100644 --- a/include/clang/Basic/DiagnosticCommentKinds.td +++ b/include/clang/Basic/DiagnosticCommentKinds.td @@ -73,6 +73,11 @@ def warn_doc_param_not_attached_to_a_function_decl : Warning< "a function declaration">, InGroup<Documentation>, DefaultIgnore; +def warn_doc_function_not_attached_to_a_function_decl : Warning< + "'@function' command used in a comment that is attached to " + "a non-function declaration immediately following it">, + InGroup<Documentation>, DefaultIgnore; + def warn_doc_param_duplicate : Warning< "parameter '%0' is already documented">, InGroup<Documentation>, DefaultIgnore; |