[PATCH] D155239: [clang-format] Add SpacesInParens with SpacesInParensOptions
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 19:12:52 PDT 2023
owenpan added inline comments.
================
Comment at: clang/docs/ReleaseNotes.rst:830
+- Add ``SpacesInParens`` style with ``SpacesInParensOptions`` to replace
+ ``SpacesInConditionalStatement``, ``SpacesInCStyleCastParentheses``,
+ ``SpaceInEmptyParentheses``, and ``SpacesInParentheses``.
----------------
================
Comment at: clang/include/clang/Format/Format.h:4245
+ SpacesInParensCustom(bool InConditionalStatements, bool InCStyleCasts,
+ bool InEmptyParentheses, bool Other)
+ : InConditionalStatements(InConditionalStatements),
----------------
================
Comment at: clang/include/clang/Format/Format.h:4247-4248
+ : InConditionalStatements(InConditionalStatements),
+ InCStyleCasts(InCStyleCasts),
+ InEmptyParentheses(InEmptyParentheses),
+ Other(Other) {}
----------------
================
Comment at: clang/include/clang/Format/Format.h:4254-4255
+ InCStyleCasts == R.InCStyleCasts &&
+ InEmptyParentheses == R.InEmptyParentheses &&
+ Other == R.Other;
+ }
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155239/new/
https://reviews.llvm.org/D155239
More information about the cfe-commits
mailing list