Remove duplicate, nonsense information from an attribute diagnostic. The NonParmVar subject does not need to mention functions, and the resulting diagnostic definitely does not need to mention functions twice.

llvm-svn: 319549
This commit is contained in:
Aaron Ballman 2017-12-01 15:54:29 +00:00
parent 45b5950f38
commit cfc1485f86
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ def NormalVar : SubsetSubject<Var,
"local variables">;
def NonParmVar : SubsetSubject<Var,
[{S->getKind() != Decl::ParmVar}],
"variables and functions">;
"variables">;
def NonBitField : SubsetSubject<Field,
[{!S->isBitField()}],
"non-bit-field non-static data members">;

View File

@ -2,7 +2,7 @@
int a __attribute__((nodebug));
void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to functions, function pointers, Objective-C methods, and variables and functions}}
void b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to functions, function pointers, Objective-C methods, and variables}}
int b __attribute__((nodebug));
}