Skip to content

Commit 7da3ee4

Browse files
committed
[-Wunsafe-buffer-usage][NFC] clang-format UnsafeBufferUsage.cpp (llvm#82027)
(cherry picked from commit 3fa9102)
1 parent 4828180 commit 7da3ee4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clang/lib/Analysis/UnsafeBufferUsage.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,20 +3087,20 @@ void clang::checkUnsafeBufferUsage(const Decl *D,
30873087
it->first->getNameAsString() +
30883088
"' : has a reference type"));
30893089
#endif
3090-
it = FixablesForAllVars.byVar.erase(it);
3091-
} else if (Tracker.hasUnclaimedUses(it->first)) {
3092-
it = FixablesForAllVars.byVar.erase(it);
3093-
} else if (it->first->isInitCapture()) {
3090+
it = FixablesForAllVars.byVar.erase(it);
3091+
} else if (Tracker.hasUnclaimedUses(it->first)) {
3092+
it = FixablesForAllVars.byVar.erase(it);
3093+
} else if (it->first->isInitCapture()) {
30943094
#ifndef NDEBUG
30953095
Handler.addDebugNoteForVar(it->first, it->first->getBeginLoc(),
30963096
("failed to produce fixit for '" +
30973097
it->first->getNameAsString() +
30983098
"' : init capture"));
30993099
#endif
3100-
it = FixablesForAllVars.byVar.erase(it);
3101-
} else {
3102-
++it;
3103-
}
3100+
it = FixablesForAllVars.byVar.erase(it);
3101+
} else {
3102+
++it;
3103+
}
31043104
}
31053105

31063106
#ifndef NDEBUG

0 commit comments

Comments
 (0)