[llvm-bugs] [Bug 26663] New: Formatter eats space in front of attributes for `operator delete`

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 18 08:50:12 PST 2016


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

            Bug ID: 26663
           Summary: Formatter eats space in front of attributes for
                    `operator delete`
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          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
    Classification: Unclassified

This works:

$ echo 'void operator new(void* foo) ATTRIB;' | bin/clang-format -
void operator new(void *foo) ATTRIB;

This doesn't:

$ echo 'void operator delete(void* foo) ATTRIB;' | bin/clang-format -
void operator delete(void *foo)ATTRIB;

Note the missing space in front of ATTRIB.

-- 
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/20160218/51ca92c7/attachment.html>


More information about the llvm-bugs mailing list