https://bugs.llvm.org/show_bug.cgi?id=36020
Bug ID: 36020
Summary: Add option to IndentPPDirectives to respect
indentation of context
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: aardap...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
With IndentPPDirectives: AfterHash, preprocessor directives are indented, but
only relative to other preprocessor directives, not to the surrounding code. So
code that is intended to look like:
> void foo() {
> if (bar) {
> A;
> # ifdef D
> # define E
> B;
> # endif
> C;
> }
> }
is clang-formatted to:
> void foo() {
> if (bar) {
> A;
> #ifdef D
> # define E
> B;
> #endif
> C;
> }
> }
This is a follow-up from bug https://bugs.llvm.org/show_bug.cgi?id=17362
Related feature: https://bugs.llvm.org/show_bug.cgi?id=36019
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs