From c99e5f9f183e80b874156f28f745101ccaaf5076 Mon Sep 17 00:00:00 2001 From: Douglas Katzman <dougk@google.com> Date: Fri, 7 Oct 2016 21:02:38 +0000 Subject: [PATCH] Visually align table def with respective enum. NFC 'warn_attribute_wrong_decl_type' has to stay in sync with 'enum AttributeDeclKind' which is much easier when they line up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283601 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 62 +++++++++++++++------- 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index b3d834dd282..bd634a6b3ac 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2567,25 +2567,49 @@ def err_ifunc_resolver_return : Error< def err_ifunc_resolver_params : Error< "ifunc resolver function must have no parameters">; def warn_attribute_wrong_decl_type : Warning< - "%0 attribute only applies to %select{functions|unions|" - "variables and functions|" - "functions, variables, and Objective-C interfaces|" - "functions and methods|parameters|" - "functions, methods and blocks|functions, methods, and classes|" - "functions, methods, and parameters|classes|enums|variables|methods|" - "fields and global variables|structs|parameters and typedefs|variables and typedefs|" - "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 or class extension declarations|" - "variables, functions and classes|" - "functions, variables, classes, and Objective-C interfaces|" - "Objective-C protocols|variables with static or thread storage duration|" - "functions and global variables|structs, unions, and typedefs|structs and typedefs|" - "interface or protocol declarations|kernel functions|non-K&R-style functions|" - "variables, enums, fields and typedefs|functions, methods, enums, and classes|" - "structs, classes, variables, functions, and inline namespaces|" - "variables, functions, methods, types, enumerations, enumerators, labels, and non-static data members}1">, + "%0 attribute only applies to %select{" + "functions" + "|unions" + "|variables and functions" + "|functions, variables, and Objective-C interfaces" + "|functions and methods" + "|parameters" + "|functions, methods and blocks" + "|functions, methods, and classes" + "|functions, methods, and parameters" + "|classes" + "|enums" + "|variables" + "|methods" + "|fields and global variables" + "|structs" + "|parameters and typedefs" + "|variables and typedefs" + "|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 or class extension declarations" + "|variables, functions and classes" + "|functions, variables, classes, and Objective-C interfaces" + "|Objective-C protocols" + "|variables with static or thread storage duration" + "|functions and global variables" + "|structs, unions, and typedefs" + "|structs and typedefs" + "|interface or protocol declarations" + "|kernel functions" + "|non-K&R-style functions" + "|variables, enums, fields and typedefs" + "|functions, methods, enums, and classes" + "|structs, classes, variables, functions, and inline namespaces" + "|variables, functions, methods, types, enumerations, enumerators, labels, and non-static data members}1">, InGroup<IgnoredAttributes>; def err_attribute_wrong_decl_type : Error<warn_attribute_wrong_decl_type.Text>; def warn_type_attribute_wrong_type : Warning< -- GitLab