}
def WarnUnusedResult : InheritableAttr {
- let Spellings = [GNU<"warn_unused_result">, CXX11<"","warn_unused_result">];
+ let Spellings = [GNU<"warn_unused_result">, CXX11<"clang","warn_unused_result">];
}
def Weak : InheritableAttr {
if (!isFunction(D) && !isa<ObjCMethodDecl>(D) && !isa<CXXRecordDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << ExpectedFunctionOrMethod;
+ << Attr.getName() << ExpectedFunctionMethodOrClass;
return;
}
}
namespace warn_unused_CXX11 {
-struct [[warn_unused_result]] Status {
+struct [[clang::warn_unused_result]] Status {
bool ok() const;
};
Status DoSomething();