[llvm-bugs] [Bug 36170] New: clang-format removes space between macro name and definition in parens (thereby breaking the code)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 31 07:08:51 PST 2018


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

            Bug ID: 36170
           Summary: clang-format removes space between macro name and
                    definition in parens (thereby breaking the code)
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: max at maxbruckner.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Given the following macro:

#define true ((int)1)

clang-format produces the following, incorrect, output that doesn't compile:

#define true((int)1)

I tried to find a configuration option related to this, but I couldn't find
one. The problem is reproducible with the default configuration (without
.clang-format).

-- 
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/20180131/dcd822a6/attachment.html>


More information about the llvm-bugs mailing list