[PATCH] D152443: Add SpaceAfterOperatorKeyword & SpaceAfterOperatorKeywordInCall style options for clang-format
Alexander Hinze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 11 08:48:15 PDT 2023
KitsuneAlex updated this revision to Diff 530303.
KitsuneAlex marked 2 inline comments as done.
KitsuneAlex removed reviewers: lattner, craig.topper, RKSimon, respindola, rymiel, owenpan.
KitsuneAlex added a comment.
Herald added reviewers: rymiel, owenpan.
This revision of the diff changes the names of the new style options to **SpaceAfterOperatorOverload** and **SpaceAfterOperatorCall**, which clarifies their scope a lot better i think.
I also rewrote the logic to apply formatting that fits exactly what their name implies respectively,
the new tests i added should cover all common use cases (except i forgot some again).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152443/new/
https://reviews.llvm.org/D152443
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152443.530303.patch
Type: text/x-patch
Size: 9091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230611/729b2830/attachment.bin>
More information about the cfe-commits
mailing list