Skip to content

clang-format: Override ColumnLimit option on file by file bases. #111770

@dehinrsu

Description

@dehinrsu

It is hard to get the correct ColumnLimit value which best suits all the files in the project.

Along with the global ColumnLimit option (which applies for the entire project), a pragma for a local and custom ColumnLimit (which applies to that file only) will be useful.

// clang-format ColumnLimit 150
or
// clang-format ColumnLimitLocal 150
or
// clang-format ColumnLimitFile 150

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions