r199460 - Refine diagnostic: attribute 'nonnull' applies to both functions and methods.
Ted Kremenek
kremenek at apple.com
Thu Jan 16 20:58:30 PST 2014
Author: kremenek
Date: Thu Jan 16 22:58:29 2014
New Revision: 199460
URL: http://llvm.org/viewvc/llvm-project?rev=199460&view=rev
Log:
Refine diagnostic: attribute 'nonnull' applies to both functions and methods.
Modified:
cfe/trunk/include/clang/Basic/Attr.td
Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=199460&r1=199459&r2=199460&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Thu Jan 16 22:58:29 2014
@@ -680,7 +680,7 @@ def NoMips16 : InheritableAttr, TargetSp
def NonNull : InheritableAttr {
let Spellings = [GNU<"nonnull">, CXX11<"gnu", "nonnull">];
let Subjects = SubjectList<[ObjCMethod, FunctionLike, HasFunctionProto],
- WarnDiag, "ExpectedFunction">;
+ WarnDiag, "ExpectedFunctionOrMethod">;
let Args = [VariadicUnsignedArgument<"Args">];
let AdditionalMembers =
[{bool isNonNull(unsigned idx) const {
More information about the cfe-commits
mailing list