[PATCH] D151047: [clang-format] Fix indentation for selective formatting.
Sedenion via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 09:17:00 PDT 2023
Sedeniono updated this revision to Diff 529630.
Sedeniono added a comment.
Reformatted comment, and submitting it via `arc diff --update` now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151047/new/
https://reviews.llvm.org/D151047
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
Index: clang/lib/Format/UnwrappedLineFormatter.cpp
===================================================================
--- clang/lib/Format/UnwrappedLineFormatter.cpp
+++ clang/lib/Format/UnwrappedLineFormatter.cpp
@@ -166,11 +166,10 @@
const AdditionalKeywords &Keywords;
const unsigned AdditionalIndent;
- /// The indent in characters for each level.
- /// It remembers the indent of previous lines (that are not PP directives) of
- /// equal or lower levels. This is used to align formatted lines to the indent
- /// of previous non-formatted lines. Think about the --lines parameter of
- /// clang-format.
+ /// The indent in characters for each level. It remembers the indent of
+ /// previous lines (that are not PP directives) of equal or lower levels. This
+ /// is used to align formatted lines to the indent of previous non-formatted
+ /// lines. Think about the --lines parameter of clang-format.
SmallVector<int> IndentForLevel;
/// Offset of the current line relative to the indent level.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151047.529630.patch
Type: text/x-patch
Size: 1027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230608/b2d30293/attachment.bin>
More information about the llvm-commits
mailing list