[clang] [clang-format] Fix short function merging with macro expansion (PR #204421)
Jesse Rosenstock via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 25 00:33:28 PDT 2026
jmr wrote:
> Can someobdy help me understand the problem.
The problem is that `void f() { MACRO(); }` will be formatted as
```
void f() { MACRO();
}
```
in some cases.
https://github.com/llvm/llvm-project/pull/204421/changes/5aadc828299075b763880fb3a70b3611e25100f5
https://github.com/llvm/llvm-project/pull/200210/changes#diff-f792cb68c6326bfd79858f805be93bc79d30ba6c16f30df9e22febb70cfa9059R385
https://github.com/llvm/llvm-project/pull/204421
More information about the cfe-commits
mailing list