[PATCH] D116283: Added an option to add a space between operator overloading and opening parentheses in clang-format
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 27 03:38:47 PST 2021
HazardyKnusperkeks added inline comments.
================
Comment at: clang/include/clang/Format/Format.h:3383
+ /// true: false:
+ /// void operator++ (int a); vs. void operator++(int
+ /// a);
----------------
Please put the `vs.` on the same column as the others.
================
Comment at: clang/include/clang/Format/Format.h:3386
+ /// \endcode
+ bool AfterOperatorOverloading;
----------------
Please sort alphabetical.
================
Comment at: clang/lib/Format/Format.cpp:860
Spacing.BeforeNonEmptyParentheses);
+ IO.mapOptional("AfterOperatorOverloading",
+ Spacing.AfterOperatorOverloading);
----------------
Sort
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116283/new/
https://reviews.llvm.org/D116283
More information about the cfe-commits
mailing list