[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 21 01:26:42 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()
----------------
amane-ame wrote:

Sorry for misunderstood.

https://github.com/llvm/llvm-project/pull/119428


More information about the cfe-commits mailing list