[llvm-bugs] [Bug 27004] New: Clang-format omits leading space for noexcept when formatting operator delete()

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 20 02:23:38 PDT 2016


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

            Bug ID: 27004
           Summary: Clang-format omits leading space for noexcept when
                    formatting operator delete()
           Product: clang
           Version: 3.8
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard.viney at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following line is incorrectly formatted by clang-format 3.8 using the LLVM
style:

void operator delete(void *, std::size_t, const std::nothrow_t &)noexcept {}

There should be a space before noexcept. The leading space is added correctly
when formatting the array delete operator:

void operator delete[](void *, std::size_t, const std::nothrow_t &) noexcept {}

-- 
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/20160320/4bf2cea2/attachment.html>


More information about the llvm-bugs mailing list