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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Lambdas sometimes align parameters with mixed whitespace even when alignment disabled (AlignAfterOpenBracket)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          max-delta
      </td>
    </tr>
</table>

<pre>
    Using clang-format from Clang version in Visual Studio 2022 v17.2.2:
```
C:\> clang-format --version
clang-format version 13.0.1
```

Authored code is as such:
```
auto threadedWorker = [](
        int* worker,
        int* shouldTerminate ) -> void
{
        //
};
```

Clang-format formats this as follows:
```
auto threadedWorker = [](
                                                  int* worker,
                                                  int* shouldTerminate ) -> void
{
        //
};
```

All documented options referring to 'alignment' are disabled.
Expect clang-format to not try to align.
Specifically, expect `AlignAfterOpenBracket : DontAlign` to prevent the observed behavior.

Clang format file:
```
BasedOnStyle : Microsoft
AccessModifierOffset : -4
AlignAfterOpenBracket  : DontAlign
AlignArrayOfStructures : None
AlignConsecutiveAssignments : false
AlignConsecutiveBitFields : false
AlignConsecutiveDeclarations : false
AlignConsecutiveMacros : false
AlignEscapedNewlines : DontAlign
AlignOperands : false
AlignTrailingComments : false
AllowAllArgumentsOnNextLine : false
AllowAllConstructorInitializersOnNextLine : false
AllowAllParametersOfDeclarationOnNextLine : false
AllowShortBlocksOnASingleLine : false
AllowShortCaseLabelsOnASingleLine : false
AllowShortEnumsOnASingleLine : false
AllowShortFunctionsOnASingleLine : Empty
AllowShortIfStatementsOnASingleLine : false
AllowShortLambdasOnASingleLine : false
AllowShortLoopsOnASingleLine : false
AlwaysBreakAfterReturnType : None
AlwaysBreakBeforeMultilineStrings : false
AlwaysBreakTemplateDeclarations : No
AttributeMacros: []
BinPackArguments : true
BinPackParameters : true
BitFieldColonSpacing : Both
BraceWrapping :
 AfterCaseLabel : true
 AfterClass : true
 AfterControlStatement : true
 AfterEnum : true
 AfterFunction : true
 AfterNamespace : false
 AfterObjCDeclaration : true
 AfterStruct : true
 AfterUnion : true
 AfterExternBlock : true
 BeforeCatch : true
 BeforeElse : true
 BeforeLambdaBody : true
 BeforeWhile : true
 IndentBraces : false
 SplitEmptyFunction : false
 SplitEmptyRecord : false
 SplitEmptyNamespace : false
BreakAfterJavaFieldAnnotations : true
BreakBeforeBinaryOperators : None
BreakBeforeBraces : Custom
BreakBeforeTernaryOperators : false
BreakConstructorInitializers : BeforeComma
BreakInheritanceList : BeforeComma
BreakStringLiterals : false
ColumnLimit : 0
CompactNamespaces : true
ConstructorInitializerAllOnOneLineOrOnePerLine : true
ConstructorInitializerIndentWidth : 4
ContinuationIndentWidth : 4
Cpp11BracedListStyle : true
DeriveLineEnding : true
DerivePointerAlignment : false
DisableFormat : false
EmptyLineAfterAccessModifier : Leave
EmptyLineBeforeAccessModifier : Leave
FixNamespaceComments : false
ForEachMacros : []
IfMacros : []
IncludeBlocks : Preserve
IndentAccessModifiers : false
IndentCaseBlocks : false
IndentCaseLabels : true
IndentExternBlock : NoIndent
IndentGotoLabels : true
IndentPPDirectives : BeforeHash
IndentRequires : false
IndentWidth : 4
IndentWrappedFunctionNames : false
KeepEmptyLinesAtTheStartOfBlocks : true
LambdaBodyIndentation : Signature
MaxEmptyLinesToKeep : 4
NamespaceIndentation : None
NamespaceMacros : []
PointerAlignment : Left
PPIndentWidth : -1
ReferenceAlignment : Pointer
ReflowComments : false
ShortNamespaceLines : 1
SortIncludes : Never
SortUsingDeclarations : false
SpaceAfterCStyleCast : false
SpaceAfterLogicalNot : false
SpaceAfterTemplateKeyword : false
SpaceAroundPointerQualifiers : Default
SpaceBeforeAssignmentOperators : true
SpaceBeforeCaseColon : false
SpaceBeforeCpp11BracedList : false
SpaceBeforeCtorInitializerColon : true
SpaceBeforeInheritanceColon : true
SpaceBeforeParens : false
SpaceBeforeRangeBasedForLoopColon : true
SpaceBeforeSquareBrackets : false
SpaceInEmptyBlock : false
SpaceInEmptyParentheses : false
SpacesBeforeTrailingComments : 1
SpacesInAngles : false
SpacesInCStyleCastParentheses : false
SpacesInContainerLiterals : true
SpacesInLineCommentPrefix:
 Minimum : 0
 Maximum : -1
SpacesInParentheses : true
SpacesInSquareBrackets : false
StatementAttributeLikeMacros : []
Standard : c++17
StatementMacros : []
TabWidth : 4
TypenameMacros : []
UseCRLF : true
UseTab : Always
WhitespaceSensitiveMacros : []
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1WNty4jgQ_RrnRQUFJpkMDzxwyy47JGFDZudZ2G3QxJa8kkxgv35bkrGNsWGqtraKMuA-arX6ctTSRoTH0XfF-JYEMeXbTiRkQjWJpEjI1Lwhe5CKCU4YJ38xldGYrHUWMkH8nu-Tff-x63d9bzD2ejOvN_a-9PKP_Ts1ggd8zs_1dzq5Wgc7k50m7A-6vW6_Ua17jjO9ExJCEogQCFOEKqKyYNdmDM20IHongYYQ_hDyAyTxBjPiPUy8h5nnfz0pHzKuPX9MPi3G86d1gdqJLA7fQSaMUw3E84ekYxa5FyzMwY-TYpTnP5lP_n7mDSZXVjU9i4P9Umi1W14k4lh8qv--wtqHkNYltyH_Tx-M45iEIsgS4BrjK1KNCaGIhAikNMmKy_T8RxqzLTcY_E2oBBIyRTcxhF2nZn5IIdDnmYcjucAveTQ_rYYcvUYwi1hA4_iIDiDgRqNpY4MaRxrkawp8ImnwASgYjMlMcG2liDL6Ugl7tAdjAERsFMg9mr-BHd0zIbsXYSanMLMY2mI6oQrCV77WxxjsnM8skEKJSOe-CgJQ6lmEaDsaGEUqt61zf3Jmk_U18ytIKenxNVprmQU6k6As8kVwqICmGA4IMs32MFYqj4JDRjRWLdAJ008M4vAmcAYYM0ld1G9gn6lxRyNqrgKaQvgCnzHj-UKalox-kZS3mPUuKcPh26lIWhaJFYmPsdzafFWv_AUOeokztkGN9da9Qi440wyz8B8kvd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