Skip to content

[clang-format] Bug - clang-format keeps appending \ when ReflowComments: Never and ColumnLimit: 0 #164282

@sebastianmueller01

Description

@sebastianmueller01

With the following source

#define FOO (1U) // comment
                 // comment

and the following config:

ColumnLimit: 0
ReflowComments: Never

Running clang-format once:

#define FOO (1U) // comment \
                 // comment

Running clang-format a second time:

#define FOO (1U) // comment \ \
                 // comment

etc

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