forked from OSchip/llvm-project
Ensuring the warning for attribute decl types matches the error for attribute decl types.
llvm-svn: 195186
This commit is contained in:
parent
22498fa6e3
commit
693c15b103
|
@ -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<IgnoredAttributes>;
|
||||
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">,
|
||||
|
|
Loading…
Reference in New Issue