Skip to content

[clang-format] .clang-format-ignore ignores -assume-filename option #113099

Closed
@kakkoko

Description

@kakkoko

The filename given by the -assume-filename option is used to search for .clang-format files, etc., but is not used to match the contents of the .clang-format-ignore file.

For example, the C/C++ extension of VSCode uses the -assume-filename option to provide a filename, and the content to be formatted is provided from standard input. Therefore, the .clang-format-ignore file will not work for that extension.

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