Skip to content

[Clang] --dump-config option returns default configuration #117893

@NahuFigueroa97

Description

@NahuFigueroa97

I'm using the -style=file option to find the .clang-format in the same directory or higher, while I use the --dump-config option to check that it takes the indicated options, but it always returns the default options. It's strange because if I modify my own .clang-format incorrectly, it tells me the error so I assume it's finding the file correctly. This happens in both versions 14 and 18.

clang-format-14 -i example/src/fieldAlertHelper.hpp --style=file --dump-config

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatincompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions