From fc8b6e631d3024de05163b450a947c9a5687c403 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 27 Dec 2013 19:08:57 +0000 Subject: [PATCH] In an effort to reduce the likelihood of text getting out of sync, reusing the text from some diagnostics explicitly. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198078 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index c84404ef00..5a868cf25d 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1848,8 +1848,7 @@ def err_attribute_uuid_malformed_guid : Error< def warn_attribute_pointers_only : Warning< "%0 attribute only applies to pointer arguments">, InGroup; -def err_attribute_pointers_only : Error< - "%0 attribute only applies to pointer arguments">; +def err_attribute_pointers_only : Error; def err_attribute_no_member_pointers : Error< "%0 attribute cannot be used with pointers to members">; def err_attribute_invalid_implicit_this_argument : Error< @@ -2045,19 +2044,7 @@ def warn_attribute_wrong_decl_type : Warning< "variables, functions and classes|Objective-C protocols|" "functions and global variables}1">, InGroup; -def err_attribute_wrong_decl_type : Error< - "%0 attribute only applies to %select{functions|unions|" - "variables and functions|functions and methods|parameters|" - "functions, methods and blocks|functions, methods, and classes|" - "functions, methods, and parameters|classes|variables|methods|" - "variables, functions and labels|fields and global variables|structs|" - "variables, functions and tag types|thread-local variables|" - "variables and fields|variables, data members and tag types|" - "types and namespaces|Objective-C interfaces|methods and properties|" - "struct or union|struct, union or class|types|" - "Objective-C instance methods|init methods of interface declarations|" - "variables, functions and classes|Objective-C protocols|" - "functions and global variables}1">; +def err_attribute_wrong_decl_type : Error; def warn_type_attribute_wrong_type : Warning< "'%0' only applies to %select{function|pointer|" "Objective-C object or block pointer}1 types; type here is %2">, -- 2.40.0