@@ -6551,25 +6551,20 @@ ExprResult Sema::ActOnCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
65516551}
65526552
65536553// 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;
65586558
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;
65656565
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);
65736568}
65746569
65756570ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
0 commit comments