zwuis wrote:

> Does this patch affect the output of `-Xclang -ast-print`?

```cpp
enum e { zero };
auto var = (e)0;
```

Output of `-Xclang -ast-print` with the code above:

<table>
<tr>
  <th>Without this PR</th>
  <th>With this PR</th>
</tr>
<tr>
  <td>
    <pre><code class="language-cpp">
enum e {
    zero
};
auto var = (e)0;
    </code></pre>
  </td>
  <td>
    <pre><code class="language-cpp">
enum e {
    zero
};
auto var = zero;
    </code></pre>
  </td>
</tr>
</table>

https://github.com/llvm/llvm-project/pull/204682
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to