Skip to content

Commit 972e93c

Browse files
[#21329] Style: Don't derive ptr alignment
Summary: We seem to prefer `const string& foo = "lorem ipsum";` over `const string &foo = "lorem ipsum";` However, in spite of having `PointerAlignment: Left` `arcanist_util/pre_commit_hook.sh` sometimes prefers the latter due to `DerivePointerAlignment: true` more details here: https://stackoverflow.com/questions/56537847/why-do-the-pointeralignment-options-not-work Jira: DB-10234 Test Plan: run arcanist_util/pre_commit_hook.sh Reviewers: arybochkin, bogdan, rthallam, dmitry, sergei Reviewed By: arybochkin Subscribers: ybase Differential Revision: https://phorge.dev.yugabyte.com/D32784
1 parent 8977a1a commit 972e93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
5252
ConstructorInitializerIndentWidth: 4
5353
ContinuationIndentWidth: 4
5454
Cpp11BracedListStyle: true
55-
DerivePointerAlignment: true
55+
DerivePointerAlignment: false
5656
DisableFormat: false
5757
ExperimentalAutoDetectBinPacking: false
5858
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]

0 commit comments

Comments
 (0)