Skip to content

clang-format: .clang-format-ignore: does not respect src/**/* #118607

@xavgru12

Description

@xavgru12

Given the file file.cpp is inside src/dir/subdir/file.cpp

configuring the ignore in:
.clang-format-ignore
src/**/*
and running clang-format -i src/dir/subdir/file.cpp

will result to:
formatted src/dir/subdir/file.cpp.

I expected it to ignore src/dir/subdir/file.cpp.

Found in 19.1.4. Seems to be the same issue in other versions.
Platform: Windows 11

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