Skip to content

Commit 6b72d63

Browse files
committed
Address code review nits
1 parent 0bb6cf1 commit 6b72d63

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8455,30 +8455,26 @@ static bool IsInfOrNanFunction(StringRef calleeName, MathCheck Check) {
84558455
}
84568456

84578457
static bool IsInfinityFunction(const FunctionDecl *FDecl) {
8458-
if (FDecl->getName() != "infinity") {
8458+
if (FDecl->getName() != "infinity")
84598459
return false;
8460-
}
84618460

84628461
if (const CXXMethodDecl *MDecl = dyn_cast<CXXMethodDecl>(FDecl)) {
84638462
const CXXRecordDecl *RDecl = MDecl->getParent();
8464-
if (RDecl->getName() != "numeric_limits") {
8463+
if (RDecl->getName() != "numeric_limits")
84658464
return false;
8466-
}
84678465

84688466
if (const NamespaceDecl *NSDecl =
8469-
dyn_cast<NamespaceDecl>(RDecl->getDeclContext())) {
8467+
dyn_cast<NamespaceDecl>(RDecl->getDeclContext()))
84708468
return NSDecl->isStdNamespace();
8471-
}
84728469
}
84738470

84748471
return false;
84758472
}
84768473

84778474
void Sema::CheckInfNaNFunction(const CallExpr *Call,
84788475
const FunctionDecl *FDecl) {
8479-
if (!FDecl->getIdentifier()) {
8476+
if (!FDecl->getIdentifier())
84808477
return;
8481-
}
84828478

84838479
FPOptions FPO = Call->getFPFeaturesInEffect(getLangOpts());
84848480
if (FPO.getNoHonorNaNs() &&

0 commit comments

Comments
 (0)