[clang] [clang-format] Fix wrapping before ##__VA_ARGS__ macro arguments (PR #214105)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 03:56:29 PDT 2026
================
@@ -5995,6 +5995,78 @@ TEST_F(FormatTest, HashInMacroDefinition) {
" struct LongPrefix##Name##LongSuffix<VeryLongTemplateArgument> {};",
Style);
+ Style = getLLVMStyle();
----------------
HazardyKnusperkeks wrote:
Why did you add your test in the middle, and reset the `Style` object? By that you basically change the following tests.
Either you can work with the style as it is, or you put yourself at the bottom.
It would be great if the test can be changed in a way, that each line within the string is also one line in the test code. Much better to read.
https://github.com/llvm/llvm-project/pull/214105
More information about the cfe-commits
mailing list