@@ -6551,25 +6551,20 @@ ExprResult Sema::ActOnCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
6551
6551
}
6552
6552
6553
6553
// Any type that could be used to form a callable expression
6554
- static bool MayBeFunctionType(const ASTContext &Context, const Expr* E) {
6555
- QualType T = E->getType();
6556
- if (T->isDependentType())
6557
- return true;
6554
+ static bool MayBeFunctionType(const ASTContext &Context, const Expr * E) {
6555
+ QualType T = E->getType();
6556
+ if (T->isDependentType())
6557
+ return true;
6558
6558
6559
- if( T == Context.BoundMemberTy || T == Context.UnknownAnyTy ||
6560
- T == Context.BuiltinFnTy || T == Context.OverloadTy ||
6561
- T->isFunctionType() || T->isFunctionReferenceType() ||
6562
- T->isMemberFunctionPointerType() || T->isFunctionPointerType() ||
6563
- T->isBlockPointerType() || T->isRecordType())
6564
- return true;
6559
+ if ( T == Context.BoundMemberTy || T == Context.UnknownAnyTy ||
6560
+ T == Context.BuiltinFnTy || T == Context.OverloadTy ||
6561
+ T->isFunctionType() || T->isFunctionReferenceType() ||
6562
+ T->isMemberFunctionPointerType() || T->isFunctionPointerType() ||
6563
+ T->isBlockPointerType() || T->isRecordType())
6564
+ return true;
6565
6565
6566
- return isa<CallExpr,
6567
- DeclRefExpr,
6568
- MemberExpr,
6569
- CXXPseudoDestructorExpr,
6570
- OverloadExpr,
6571
- UnresolvedMemberExpr,
6572
- UnaryOperator>(E);
6566
+ return isa<CallExpr, DeclRefExpr, MemberExpr, CXXPseudoDestructorExpr,
6567
+ OverloadExpr, UnresolvedMemberExpr, UnaryOperator>(E);
6573
6568
}
6574
6569
6575
6570
ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
0 commit comments