[llvm-bugs] [Bug 25043] New: Unexpeceted whitespace with SpaceAfterCStyleCast

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 4 04:42:29 PDT 2015


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

            Bug ID: 25043
           Summary: Unexpeceted whitespace with SpaceAfterCStyleCast
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            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

Created attachment 14994
  --> https://llvm.org/bugs/attachment.cgi?id=14994&action=edit
Code that formats incorrectly

Formatting the attached C++ source file with

    clang-format -style="{SpaceAfterCStyleCast: true}" -i clang-format-bug.cpp

adds an unnecessary space before the last closing parenthesis in foo(). This
can be fixed by setting the SpaceAfterCStyleCast style to false, even though
there is no C-style cast in the code.

-- 
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/20151004/470e7305/attachment.html>


More information about the llvm-bugs mailing list