Skip to content

[clang-format] limiting search scope for .clang-format-ignore #140673

Open
@fancl20

Description

@fancl20

Currently .clang-format-ignore is searched in all parent directories, which creates a sometime unintuitive behavior: clang-format may be affected by a .clang-format-ignore config outside the project.

Should the search scope be limited by clang-format config or .git directory? It's difficult to notice what happened in these cases since .clang-format-ignore can be in any parent directory e.g. under home dir and the formatter get silently ignored.

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