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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 21 12:13:30 PST 2024


================
@@ -217,6 +219,31 @@ TEST_F(MacroCallReconstructorTest, Identifier) {
   EXPECT_THAT(std::move(Unexp).takeResult(), matchesLine(line(U.consume("X"))));
 }
 
+TEST_F(MacroCallReconstructorTest, IdentifierObject) {
----------------
owenca wrote:

How about`EmptyDefinition` instead of `IdentifierObject`?

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


More information about the cfe-commits mailing list