Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D119650
[clang-format] Handle PointerAlignment in `if` and `switch` statements with initializers (C++17) the same way as in `for` loops. ClosedPublic Authored by curdeius on Feb 12 2022, 1:49 PM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 12 2022, 2:24 PM
curdeius retitled this revision from [clang-format] Handle PointerAlignment in `if` statements with initializers (C++17) the same way as in `for` loops. to [clang-format] Handle PointerAlignment in `if` and `switch` statements with initializers (C++17) the same way as in `for` loops..Feb 13 2022, 12:35 PM Closed by commit rG25282bd6c4bf: [clang-format] Handle PointerAlignment in `if` and `switch` statements with… (authored by curdeius). · Explain WhyFeb 13 2022, 12:37 PM This revision was automatically updated to reflect the committed changes. curdeius marked 2 inline comments as done.
Revision Contents
Diff 408288 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Nit: rename the function to ...WithInit, ...WithInitStmt, or ...WithInitStatement.