Skip to content

Commit 60c5a28

Browse files
snarang181Copilot
andcommitted
Update clang/lib/Sema/AnalysisBasedWarnings.cpp
Co-authored-by: Copilot <[email protected]>
1 parent 602b472 commit 60c5a28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Sema/AnalysisBasedWarnings.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ struct CheckFallThroughDiagnostics {
624624
}
625625
};
626626

627-
} // anonymous namespace
628-
629-
static bool isKnownToAlwaysThrow(const FunctionDecl *FD) {
627+
bool isKnownToAlwaysThrow(const FunctionDecl *FD) {
630628
if (!FD->hasBody())
631629
return false;
632630
const Stmt *Body = FD->getBody();
@@ -651,6 +649,7 @@ static bool isKnownToAlwaysThrow(const FunctionDecl *FD) {
651649
return false; // Not known to always throw.
652650
}
653651

652+
} // anonymous namespace
654653
/// CheckFallThroughForBody - Check that we don't fall off the end of a
655654
/// function that should return a value. Check that we don't fall off the end
656655
/// of a noreturn function. We assume that functions and blocks not marked

0 commit comments

Comments
 (0)