https://bugs.llvm.org/show_bug.cgi?id=42919
Bug ID: 42919
Summary: Feature request: Two different indentation width
options, one for code, one for pre-processor
directives
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: missing-feature, new-feature
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: sebast...@pipping.org
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
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!
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs