From 4af5d748ce34c3ef78b8b34c419508a58baafc60 Mon Sep 17 00:00:00 2001 From: David Goldman Date: Fri, 5 Apr 2019 19:17:24 +0000 Subject: [PATCH] Fix error in NamedDeclPrinterTest Caused by D56924, shouldn't use raw string literals in macros. Differential Revision: https://reviews.llvm.org/D60326 llvm-svn: 357799 --- clang/unittests/AST/NamedDeclPrinterTest.cpp | 36 +++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/clang/unittests/AST/NamedDeclPrinterTest.cpp b/clang/unittests/AST/NamedDeclPrinterTest.cpp index d97299bc1910..a50626517f61 100644 --- a/clang/unittests/AST/NamedDeclPrinterTest.cpp +++ b/clang/unittests/AST/NamedDeclPrinterTest.cpp @@ -193,29 +193,33 @@ TEST(NamedDeclPrinter, TestLinkageInNamespace) { } TEST(NamedDeclPrinter, TestObjCClassExtension) { - ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end + const char *Code = +R"( + @interface Obj + @end - @interface Obj () - @property(nonatomic) int property; - @end - )", + @interface Obj () + @property(nonatomic) int property; + @end +)"; + ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( + Code, "property", "Obj::property")); } TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) { - ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end + const char *Code = +R"( + @interface Obj + @end - @interface Obj () - @property(nonatomic, getter=myPropertyGetter) int property; - @end - )", + @interface Obj () + @property(nonatomic, getter=myPropertyGetter) int property; + @end +)"; + ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( + Code, "property", "Obj::property")); }