Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Paths
| Differential D129064
[clang-format] Avoid crash in LevelIndentTracker. ClosedPublic Authored by curdeius on Jul 4 2022, 2:34 AM.
Details
Diff Detail
Unit TestsFailed Event TimelineThis revision is now accepted and ready to land.Jul 4 2022, 3:43 AM
Closed by commit rG14c30c70c459: [clang-format] Avoid crash in LevelIndentTracker. (authored by curdeius). · Explain WhyJul 7 2022, 1:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 442037 clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTestSelective.cpp
|
You can delete both lines as the body of the if statement is unreachable. (After the while loop on lines 62-63, IndentForLevel.size() is larger than Line.Level.)