forked from OSchip/llvm-project
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:
parent
45b5950f38
commit
cfc1485f86
|
@ -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">;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue