[all-commits] [llvm/llvm-project] c5243c: [clang-format] Fix aligning with linebreaks
Björn Schäpers via All-commits
all-commits at lists.llvm.org
Sun Mar 28 07:26:59 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5243c63cda3c740d6e9c7e501f6518c21688da3
https://github.com/llvm/llvm-project/commit/c5243c63cda3c740d6e9c7e501f6518c21688da3
Author: Björn Schäpers <bjoern at hazardy.de>
Date: 2021-03-28 (Sun, 28 Mar 2021)
Changed paths:
M clang/lib/Format/WhitespaceManager.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fix aligning with linebreaks
Breaking a string literal or a function calls arguments with
AlignConsecutiveDeclarations or AlignConsecutiveAssignments did misalign
the continued line. E.g.:
void foo() {
int myVar = 5;
double x = 3.14;
auto str = "Hello"
"World";
}
or
void foo() {
int myVar = 5;
double x = 3.14;
auto str = "Hello"
"World";
}
Differential Revision: https://reviews.llvm.org/D98214
More information about the All-commits
mailing list