This revision was automatically updated to reflect the committed changes.
Closed by commit rG58c67e724f71: [clang-format] Fix AlignArrayOfStructures +
Cpp11BracedListStyle=false (authored by galenelias, committed by owenpan).
Changed prior to commit:
https://reviews.llvm.org/D158795?vs=553809&i
owenpan accepted this revision.
owenpan added inline comments.
Comment at: clang/unittests/Format/FormatTest.cpp:20888
+ " { 7, 5,\"!!\" }\n"
+ "};\n",
+ Style);
galenelias wrote:
> owenpan wrote:
> > galenelias
galenelias marked 4 inline comments as done.
galenelias added inline comments.
Comment at: clang/unittests/Format/FormatTest.cpp:20888
+ " { 7, 5,\"!!\" }\n"
+ "};\n",
+ Style);
owenpan wrote:
> galenelias wrote
galenelias updated this revision to Diff 553809.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158795/new/
https://reviews.llvm.org/D158795
Files:
clang/lib/Format/WhitespaceManager.cpp
clang/unittests/Format/FormatTest.cpp
Index: clang/unittests/Format/FormatTest.cpp
==
owenpan added inline comments.
Comment at: clang/unittests/Format/FormatTest.cpp:20888
+ " { 7, 5,\"!!\" }\n"
+ "};\n",
+ Style);
galenelias wrote:
> owenpan wrote:
> >
> This is consistent with basically every
galenelias updated this revision to Diff 553783.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158795/new/
https://reviews.llvm.org/D158795
Files:
clang/lib/Format/WhitespaceManager.cpp
clang/unittests/Format/FormatTest.cpp
Index: clang/unittests/Format/FormatTest.cpp
==
galenelias marked an inline comment as done.
galenelias added inline comments.
Comment at: clang/lib/Format/WhitespaceManager.cpp:1247
if (Previous && Previous->isNot(TT_LineComment)) {
- Changes[Next->Index].Spaces = 0;
+ Changes[Next->Index].Spaces =
owenpan added inline comments.
Comment at: clang/lib/Format/WhitespaceManager.cpp:1247
if (Previous && Previous->isNot(TT_LineComment)) {
- Changes[Next->Index].Spaces = 0;
+ Changes[Next->Index].Spaces = BracePadding;
Changes[Next->Index].Ne
owenpan added a comment.
> I'm not exactly sure why this function needs to override the Spaces as it
> seems to generally already be set to either 0 or 1 according to the other
> formatting settings
If so, can we address the issue without the "explicit fix"?
Comment at: clan
galenelias created this revision.
galenelias added a project: clang-format.
Herald added projects: All, clang.
Herald added a subscriber: cfe-commits.
Herald added reviewers: rymiel, HazardyKnusperkeks, owenpan, MyDeveloperDay.
galenelias requested review of this revision.
Fixes: https://github.co
10 matches
Mail list logo