From a5aef165ca4568161884c088687258c5516161f1 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 20 Nov 2013 01:14:35 +0000 Subject: [PATCH] Ensuring the warning for attribute decl types matches the error for attribute decl types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195186 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 442999ba34..a3d4f7f72d 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2040,7 +2040,8 @@ def warn_attribute_wrong_decl_type : Warning< "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}1">, + "types and namespaces|Objective-C interfaces|methods and properties|" + "struct or union|struct, union or class}1">, InGroup; def err_attribute_wrong_decl_type : Error< "%0 attribute only applies to %select{functions|unions|" @@ -2050,8 +2051,8 @@ def err_attribute_wrong_decl_type : Error< "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}1">; + "types and namespaces|Objective-C interfaces|methods and properties|" + "struct or union|struct, union or class}1">; 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