diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-06 17:36:51 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-06 17:36:51 +0000 |
commit | 88f070f99f7f352e294eed212fdf7a23c0815fe2 (patch) | |
tree | 36d93c0bd8bf1b8c37a69af1ba041dd8d14e524b /include/clang/Basic/DiagnosticCommentKinds.td | |
parent | f2e7c35ade3d28ef1c5ad91f757a7993b0006bbe (diff) |
say objective-C in the warning and streamline
several diagnostics into one. // rdar://13094352
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticCommentKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticCommentKinds.td | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/include/clang/Basic/DiagnosticCommentKinds.td b/include/clang/Basic/DiagnosticCommentKinds.td index b0aece5640..1bf290edf6 100644 --- a/include/clang/Basic/DiagnosticCommentKinds.td +++ b/include/clang/Basic/DiagnosticCommentKinds.td @@ -73,19 +73,10 @@ 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< - "'%select{\\|@}0function' command should be used in a comment attached to a " - "function declaration">, - InGroup<Documentation>, DefaultIgnore; - -def warn_doc_callback_not_attached_to_a_function_ptr_decl : Warning< - "'%select{\\|@}0callback' command should be used in a comment attached to a " - "pointer to function declaration">, - InGroup<Documentation>, DefaultIgnore; - -def warn_doc_method_not_attached_to_a_objc_method_decl : Warning< - "'%select{\\|@}0method' command should be used in a comment attached to an " - "objective-c method declaration">, +def warn_doc_function_method_decl_mismatch : Warning< + "'%select{\\|@}0%select{function|method|callback}1' command should be " + "used in a comment attached to " + "%select{a function|an objective-C method|a pointer to function}2 declaration">, InGroup<Documentation>, DefaultIgnore; def warn_doc_param_duplicate : Warning< |