This revision was automatically updated to reflect the committed changes.
Closed by commit rGc84d29acbfa6: [clang-format][NFC] Clean up IndentForLevel in
LevelIndentTracker (authored by owenpan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
owenpan added inline comments.
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:82-83
+if (Size <= Line.Level)
+ IndentForLevel.insert(IndentForLevel.end(), Line.Level - Size + 1,
+UnknownIndent ? -1 : Indent);
}
owenpan updated this revision to Diff 442427.
owenpan added a comment.
Use `resize()` instead of `insert()`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129105/new/
https://reviews.llvm.org/D129105
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
Index:
HazardyKnusperkeks added inline comments.
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:82-83
+if (Size <= Line.Level)
+ IndentForLevel.insert(IndentForLevel.end(), Line.Level - Size + 1,
+UnknownIndent ? -1 : Indent);
}
owenpan created this revision.
owenpan added reviewers: curdeius, HazardyKnusperkeks, MyDeveloperDay.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository: