Skip to content

git-clang-format suggested some odd indentation #67343

@tru

Description

@tru

This came up in #65744

Where git-clang-format suggested 4 spaces indentation on the patch. This also happened when I ran it locally:

gh pr checkout 65744
git-clang-format --diff b8b4ee6b450766796b162b4811a6b3f723d07268 d07486764071679c8cbcd5e7c4905eb41b4770b3 -- clang/utils/TableGen/ClangAttrEmitter.cpp

Just running clang-format on the code doesn't do this indentation, but it fixes a lot of other indentation problems. So I think git-clang-format picks up on some formatting outside the patch and misses the idea a bit.

Anyone have any idea what's going on here?

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