[llvm-bugs] [Bug 32312] New: clang-format incorrectly puts space before and after * in local function pointer decl

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 16 08:09:52 PDT 2017


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

            Bug ID: 32312
           Summary: clang-format incorrectly puts space before and after *
                    in local function pointer decl
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Not sure if this is a regression, but

void f() {
  void (*SetRow)(uint8* dst, uint8 value, int width) = SetRow_C;
}

gets turned into

C:\src\chrome\src>buildtools\win\clang-format.exe temp.cc
void f() {
  void (*SetRow)(uint8 * dst, uint8 value, int width) = SetRow_C;
}

-- 
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/20170316/2e590eb9/attachment.html>


More information about the llvm-bugs mailing list