[llvm-bugs] [Bug 25359] New: Feature request: separate ReferenceAlignment setting

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 30 19:10:08 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25359

            Bug ID: 25359
           Summary: Feature request: separate ReferenceAlignment setting
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: m-llvm at bodyfour.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

There is a setting PointerAlignment which currently applies to both pointers
and C++ references.  In my code, I prefer to align them differently so they
stand out more:

  extern int foo(int *x);
  extern int foo(int& x);

I wish there was a way to configure clang-format to format code like this.

-- 
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/20151031/a1c5c531/attachment.html>


More information about the llvm-bugs mailing list