diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-01 08:25:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-01 08:25:07 +0000 |
commit | 5f838aa9c82c22b6ed2a0cb090969a706c8a1775 (patch) | |
tree | da83118319c278b5d282ccc7d6d7fcd6bc608d21 /include/clang/Basic | |
parent | cd0655b17249c4c4908ca91462657f62285017e6 (diff) |
Fix diagnostic for bad alignas use: it can't be applied to functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index b1f4fb62dc..3e3b816ce2 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1852,7 +1852,8 @@ def warn_attribute_wrong_decl_type : Warning< "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}1">, + "variables, functions and tag types|thread-local variables|" + "variables and fields|variables, data members and tag types}1">, InGroup<IgnoredAttributes>; def err_attribute_wrong_decl_type : Error< "%0 attribute only applies to %select{functions|unions|" @@ -1860,7 +1861,8 @@ def err_attribute_wrong_decl_type : Error< "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}1">; + "variables, functions and tag types|thread-local variables|" + "variables and fields|variables, data members and tag types}1">; def warn_function_attribute_wrong_type : Warning< "'%0' only applies to function types; type here is %1">, InGroup<IgnoredAttributes>; |