static void handleCallableWhenAttr(Sema &S, Decl *D,
const AttributeList &Attr) {
-
- if (!checkAttributeAtLeastNumArgs(S, Attr, 1)) return;
+ if (!checkAttributeAtLeastNumArgs(S, Attr, 1))
+ return;
if (!isa<CXXMethodDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<
static void handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) {
- if (!checkAttributeNumArgs(S, Attr, 1)) return;
+ if (!checkAttributeNumArgs(S, Attr, 1))
+ return;
if (!isa<CXXMethodDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<
static void handleTestsTypestateAttr(Sema &S, Decl *D,
const AttributeList &Attr) {
- if (!checkAttributeNumArgs(S, Attr, 1)) return;
+ if (!checkAttributeNumArgs(S, Attr, 1))
+ return;
if (!isa<CXXMethodDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<