From: Ted Kremenek Date: Fri, 17 Jan 2014 04:58:29 +0000 (+0000) Subject: Refine diagnostic: attribute 'nonnull' applies to both functions and methods. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73fae0d8723ba33ae6704c9282ea5704bf3172f4;p=clang Refine diagnostic: attribute 'nonnull' applies to both functions and methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199460 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Attr.td b/include/clang/Basic/Attr.td index 95526d7781..6426bc1ab2 100644 --- a/include/clang/Basic/Attr.td +++ b/include/clang/Basic/Attr.td @@ -680,7 +680,7 @@ def NoMips16 : InheritableAttr, TargetSpecificAttr { 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 {