llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.15k stars 12.03k forks source link

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

Open dehinrsu opened 1 month ago

dehinrsu commented 1 month ago

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

mydeveloperday commented 1 month ago

What is the value of this? I think it would too much complexity to the code