Open griffin2000 opened 1 day ago
Could you please try 19 or main
branch?
Could you please try 19 or
main
branch?
Yup just verified with https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/clang+llvm-19.1.0-x86_64-pc-windows-msvc.tar.xz, same result
Wow! Quick turnaround. Thanks @owenca
In the attached example (test.cpp.txt, renamed to .txt so it can be attached) using the attached .clang-format settings (clang-format.txt, also renamed to .txt and . prefix removed), the second line of the struct is formatted by clang-format (v 14.0.0) as if it was a pointer de-reference, and the space following the
*
is removed.So this...
Becomes:
The expected behaviour is the space should be maintained, or added if it it is removed (if either the space before or after the
*
is removed on the previous line, it will be added back by clang-format)