Feature request: Two different indentation width options, one for code, one for pre-processor directives #42264
Labels
bugzilla
Issues migrated from bugzilla
clang-format
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
Extended Description
It seems like option "IndentWidth" effects both C/C++ code indentation width as well as pre-processor indentation width. What I have seen a few times is that pre-processor indentation uses a single space per level while the C/C++ code in the same file uses 2 or 4 spaces. "IndentWidth" seems to affect both widths which also means that pre-processor code will look very noise when "IndentWidth" is more than 2.
So it would be great to have two options, "IndentWidth" and a new one "IndentWidthPP"(?), thinking of existing "IndentPPDirectives".
Would that be possible?
Thanks in advance!
The text was updated successfully, but these errors were encountered: