[llvm-bugs] [Bug 42919] New: Feature request: Two different indentation width options, one for code, one for pre-processor directives
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Aug  7 09:53:44 PDT 2019
    
    
  
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: unassignedclangbugs at nondot.org
          Reporter: sebastian at pipping.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190807/0f1d76e9/attachment.html>
    
    
More information about the llvm-bugs
mailing list