Skip to content

[clang-format] Multiline C macros gets aggressively indentations after formatting.  #82426

Open
@mingmingl-llvm

Description

@mingmingl-llvm

This is the clang-format diff from the pre-commit CI of a pull request. The automatic formatted lines ( line 210 to line 267, line 284 to line 404, code between 780 to 970, etc) are indented in a way that’s hard to read at least for me.

Using // clang-format off and // clang-format on selectively around code regions (as demonstrated in a draft pr is one option. But it goes in the opposite of the good direction to enable clang-formats everywhere.

File this bug to track the issue.

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