Skip to content

Commit daee330

Browse files
committed
Fix code formatting
1 parent 6e261e1 commit daee330

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ void ArrayBoundChecker::performCheck(const Expr *E, CheckerContext &C) const {
706706
// ...but it's tainted, so report an error.
707707

708708
// Diagnostic detail: saying "tainted offset" is always correct, but
709-
// the common case is that 'idx' is tainted in 'arr[idx]' and then it's
710-
// nicer to say "tainted index".
709+
// the common case is that 'idx' is tainted in 'arr[idx]' and then
710+
// it's nicer to say "tainted index".
711711
const char *OffsetName = "offset";
712712
if (const auto *ASE = dyn_cast<ArraySubscriptExpr>(E))
713713
if (isTainted(State, ASE->getIdx(), C.getLocationContext()))
@@ -851,9 +851,8 @@ bool ArrayBoundChecker::isIdiomaticPastTheEndPtr(const Expr *E,
851851

852852
void ento::registerArrayBoundChecker(CheckerManager &mgr) {
853853
ArrayBoundChecker *checker = mgr.registerChecker<ArrayBoundChecker>();
854-
checker->IsAggressive =
855-
mgr.getAnalyzerOptions().getCheckerBooleanOption(
856-
checker, "AggressiveReport");
854+
checker->IsAggressive = mgr.getAnalyzerOptions().getCheckerBooleanOption(
855+
checker, "AggressiveReport");
857856
}
858857

859858
bool ento::shouldRegisterArrayBoundChecker(const CheckerManager &mgr) {

0 commit comments

Comments
 (0)