<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - clang-format converting object-like macro to function-like macro"
href="https://bugs.llvm.org/show_bug.cgi?id=39719">39719</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-format converting object-like macro to function-like macro
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Formatter
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>matt@woelfware.com
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21132" name="attach_21132" title="demo app for generating faulty macros in output code">attachment 21132</a> <a href="attachment.cgi?id=21132&action=edit" title="demo app for generating faulty macros in output code">[details]</a></span>
demo app for generating faulty macros in output code
I'm using clang-format version 7.0.0 (Fedora 7.0.0-2.fc29). There appears to
be a regression the same as the previously fixed <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang-format turns macro with no argument into a macro with an argument"
href="show_bug.cgi?id=15035">Bug 15035</a>.
Attached is a simple application that once run through clang-format will no
longer compile due to the malgenerated #defines:
- #define true ((foo)1)
- #define false ((foo)0)
+ #define true((foo)1)
+ #define false((foo)0)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>