<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/73366>73366</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] unexpected behavior from "AlignConsecutiveAssignments: Consecutive"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          zhang-stephen
      </td>
    </tr>
</table>

<pre>
    I am using llvm 17 for a tiny C project on Mac OS 14. and the clang-format is installed by homebrew.

then I got this formatted file(it should be aligned along the `=`):

![image](https://github.com/llvm/llvm-project/assets/17326718/35e98f16-7fd6-41c4-90c0-5b159542f251)

the command I used(which was ran in the root of the project):

![image](https://github.com/llvm/llvm-project/assets/17326718/2aec4469-b775-47ee-b521-5e295d2619c1)

Do not mark this issue as "duplicated", please. I have checked #58029, which said the issue should be fixed in llvm 16. But I think it is not fixed completely.

`.clang-format`:

```yml
---
# Language: C, Cpp
BasedOnStyle: WebKit

# user-defined details
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: Consecutive # --> HERE: alignment along "+", instead of "=" <--
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveBitFields: Consecutive
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortLoopsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: WithoutElse
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
    AfterCaseLabel: true
    AfterClass: true
    AfterControlStatement: Always
 AfterExternBlock: false
    AfterEnum: true
    AfterFunction: true
 AfterNamespace: true
    AfterStruct: true
    AfterUnion: true
 BeforeElse: true
    BeforeLambdaBody: false
    BeforeWhile: false
BreakBeforeConceptDeclarations: Always
BreakBeforeTernaryOperators: true
BreakStringLiterals: true
BreakConstructorInitializers: BeforeComma
BreakBeforeBraces: Custom
ColumnLimit: 120
EmptyLineBeforeAccessModifier: Always
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
IncludeBlocks: Regroup
IndentCaseBlocks: true
NamespaceIndentation: None
PointerAlignment: Left
ReferenceAlignment: Left
SpaceInEmptyBlock: false
SpaceBeforeCaseColon: false
UseTab: Never
UseCRLF: false

```



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VltvozgU_jXOi0UUTEjCQx5y1UabmY6aGfX5YA7grbGRbdpmfv3KJremrTT7slJFI77v3L-DDdaKSiHOSbok6XoAnau1mf-uQVWRddjWqAa5Lo7zHYWGdlaoikr50tB4SkttKFAn1JGuaGv0P8gd1Yp-A04fDjQeDymogroaKZfeYalNA44KS4WyDqTEguZHWusGc4OvQzJak9Gif7oaFd3RSjvqamFpb-uwoKWQSNhMOGpr3cmC5khB-jIKClKrKkQkkxFJ1v7JMpIsbl0TFpN0KRqokKRrwma1c631JLYlbFsJV3f5kOuGsK2v9fQvOpVI2BasRWcJ28bThE2m8YywbZJiNivjSTQti0k0jvk4ykZ8FKV5nGbpmJUsjX0u72ukXDeN79KOdhYLwmavteA1fQVLDSgqVKjGaO2oLsPvSxr_T10MkI_HkyzKp9M0Gk8RozxlcZQiy9KCTeKM39e11lRpRxswz_3whLUdUrCUMFZ0rRQcnC-WEbairUSwOKQ7WsMLUl4jf8aCEpaksxHLPKXviQXRq6l3d51-Kd6w8K3qlTkZ0mXn6M7HVs9UBMX5hHoe100r0aE8vhMcmYyGtzINAlrcMfq_YyP7N1EUnVuf0D2oqvO9TxZ05bNetW2PLsFi8aAO7igD-oT538K9H13i52-iAkvhhVygAyFtjy68uhelQ_PQoloa4M_ovKMA3HBWWlnknRMvuAib3aByNiR0RXxnaRSRZEP_2jxuPBrWx3NPCxQmszzNx-8qQuHl598ka8IYJcnqXPt95DVyCQac0Oo-9OcGS-G2AmXxFVvq14WUP8BAgw6NfShvQjyo7_jm9kKFzpYg7a3dodbG7bVu7YNaHISqJJ6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