Skip to content

clang-format incorrect indent after AlignConsecutiveAssignments enabled #56078

@isudfv

Description

@isudfv
int  abcdefghijk = 111; 
auto lambda      = [] { 
    int c = call(1,     
                      2, <--
                      3, <--
                      4) <--
};                      

the align of function params is incorrect if its outside lambda is aligned with AlignConsecutiveAssignments.

the code should be

int  abcdefghijk = 111;  
auto lambda      = [] {  
    int c = call(1,      
                 2, 
                 3, 
                 4);
};                       

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions