title: Clang format: macros which include braces
body: <p>I have created a .clang-format file to format my code. I noticed a problem that the format of macros, e.g. #defines gets garbled by clang-format when using braces in the define, for example:</p>
  <pre><code>#define FOO_BAR {foo, bar}
  </code></pre>
  <p>clang format changes it to:</p>
  <pre><code>#define FOO_BAR \
    { foo, bar }
  </code></pre>
  <p>How can I tell clang format to not move that to a new line? If I have something like</p>
  <pre><code>#define FOO_BAR (foo, bar)
  </code></pre>
  <p>clang-format does it correctly and aligns it according to my settings.
  I went through the options on <a href="https://clang.llvm.org/docs/ClangFormatStyleOptions.html" rel="nofollow noreferrer">https://clang.llvm.org/docs/ClangFormatStyleOptions.html</a> but none of the options where an obvious solution/cause of the problem for me.</p>
  <p>Any help or hints are greatly appreciated.</p>
  <p><strong>EDIT:</strong> This is a bug, see <a href="https://github.com/llvm/llvm-project/issues/53180" rel="nofollow noreferrer">https://github.com/llvm/llvm-project/issues/53180</a></p>