Skip to content

Commit 0e24e37

Browse files
committed
I love our coding standard w.r.t. single-line if statements
1 parent 344cd4c commit 0e24e37

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old,
492492

493493
if (PrevForDefaultArgs->getLexicalDeclContext()->getPrimaryContext() !=
494494
ScopeDC->getPrimaryContext() &&
495-
!New->isCXXClassMember()) {
495+
!New->isCXXClassMember())
496496
// If previous declaration is lexically in a different scope,
497497
// we don't inherit its default arguments, except for out-of-line
498498
// declarations of member functions.
@@ -503,7 +503,6 @@ bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old,
503503
// in ConvertArgumentsForCall, after the best viable function has been
504504
// selected.
505505
continue;
506-
}
507506

508507
// We found the right previous declaration.
509508
break;

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5943,10 +5943,9 @@ Sema::ConvertArgumentsForCall(CallExpr *Call, Expr *Fn,
59435943
if (FDecl->isExternC() ||
59445944
std::any_of(
59455945
FDecl->redecls_begin(), FDecl->redecls_end(),
5946-
[](FunctionDecl *Redecl) { return Redecl->isLocalExternDecl(); })) {
5946+
[](FunctionDecl *Redecl) { return Redecl->isLocalExternDecl(); }))
59475947
checkDefaultArgumentsAcrossScopes(*this, FDecl, Args.size(),
59485948
Call->getBeginLoc());
5949-
}
59505949
}
59515950

59525951
// If too many are passed and not variadic, error on the extras and drop

0 commit comments

Comments
 (0)