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: unassignedclangb...@nondot.org
          Reporter: m...@maxbruckner.de
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to