[llvm-bugs] [Bug 24594] New: The clang-format "SpaceAfterCStyleCast" option is used incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 26 18:33:37 PDT 2015


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

            Bug ID: 24594
           Summary: The clang-format "SpaceAfterCStyleCast" option is used
                    incorrectly
           Product: new-bugs
           Version: 3.7
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: justbuchanan at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14782
  --> https://llvm.org/bugs/attachment.cgi?id=14782&action=edit
Example file that can be used to reproduce the bug

I have the SpaceAfterCStyleCast option set to false in my .clang-format file,
but when I run clang-format, it inserts spaces in my file.  I have attached a
sample file below.  I ran clang with: `clang-format -style=file -i file.cpp`.

My .clang-format looks like this:

---
BasedOnStyle: Google
DerivePointerAlignment: false
IndentWidth: 4
TabWidth: 4
UseTab: Never
AccessModifierOffset: -4
SpaceAfterCStyleCast: false
...

-- 
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/20150827/1d2336ba/attachment-0001.html>


More information about the llvm-bugs mailing list