[PATCH] D152443: Add SpaceAfterOperatorKeyword style option for clang-format
Alexander Hinze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 8 06:43:01 PDT 2023
KitsuneAlex created this revision.
KitsuneAlex added reviewers: lattner, craig.topper, RKSimon, respindola.
KitsuneAlex added a project: clang-format.
Herald added projects: All, clang.
Herald added a subscriber: cfe-commits.
Herald added reviewers: rymiel, HazardyKnusperkeks, owenpan, MyDeveloperDay.
KitsuneAlex requested review of this revision.
First of all, i apologize in advance if anything in the submission proccess was messed up, this is my first time contributon to the LLVM project.
This patch adds a new option 'SpaceAfterOperatorKeyword' to clang-format.
As the name implies, this will insert a space after every operator keyword, effectively splitting the actual operator from the keyword, which i found is a missing option for my private and professional work.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152443
Files:
clang/docs/ClangFormatStyleOptions.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.529578.patch
Type: text/x-patch
Size: 5067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230608/dd2d1036/attachment-0001.bin>
More information about the cfe-commits
mailing list