Skip to content

[clang-format] How to remove empty line after statement? #159356

@parmi93

Description

@parmi93
enum my_enum

{  // I want to remove the blank line above
    ENUM1
}

void foo(void)

{   // I want to remove the blank line above
    if (true)

    {  // I want to remove the blank line above
    }

    switch (x)
    
    {   // I want to remove the blank line above
        case 1:
        
        {   // I want to remove the blank line above
            break;
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions