Fixes https://github.com/llvm/llvm-project/issues/53576.
There was an inconsistency in formatting of delete expressions.
Before:
delete (void*)a; delete[](void*) a;
After this patch:
delete (void*)a; delete[] (void*)a;
Paths
| Differential D119117
[clang-format] Fix formatting of the array form of delete. ClosedPublic Authored by curdeius on Feb 7 2022, 2:12 AM.
Details Summary Fixes https://github.com/llvm/llvm-project/issues/53576. There was an inconsistency in formatting of delete expressions. Before: delete (void*)a; delete[](void*) a; After this patch: delete (void*)a; delete[] (void*)a;
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 7 2022, 5:31 AM This revision was landed with ongoing or failed builds.Feb 9 2022, 1:36 PM Closed by commit rGa77c67f93917: [clang-format] Fix formatting of the array form of delete. (authored by curdeius). · Explain Why This revision was automatically updated to reflect the committed changes. curdeius marked an inline comment as done.
Revision Contents
Diff 407280 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
|
The test name contains “new” and “delete”, but the test cases are all “delete”.