Skip to content

Commit 8bf68f8

Browse files
committed
[clang-format] Add a testcase for empty macro
1 parent 3a4c1a9 commit 8bf68f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/test/Format/empty-macro.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style="{Macros: [A(x)=x]}" \
2+
// RUN: | FileCheck -strict-whitespace %s
3+
4+
// CHECK: A()
5+
A()

0 commit comments

Comments
 (0)