[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 20 22:47:58 PST 2024
================
@@ -0,0 +1,5 @@
+// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style="{Macros: [A(x)=x]}" \
+// RUN: | FileCheck -strict-whitespace %s
+
+// CHECK: A()
+A()
----------------
owenca wrote:
Don't add a lit test. Instead, add a unittest similar to the one you already added there.
https://github.com/llvm/llvm-project/pull/119428
More information about the cfe-commits
mailing list