Index: unittests/AST/NamedDeclPrinterTest.cpp =================================================================== --- unittests/AST/NamedDeclPrinterTest.cpp +++ unittests/AST/NamedDeclPrinterTest.cpp @@ -193,29 +193,33 @@ } TEST(NamedDeclPrinter, TestObjCClassExtension) { + const char *Code = +R"( + @interface Obj + @end + + @interface Obj () + @property(nonatomic) int property; + @end +)"; ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end - - @interface Obj () - @property(nonatomic) int property; - @end - )", + Code, "property", "Obj::property")); } TEST(NamedDeclPrinter, TestObjCClassExtensionWithGetter) { + const char *Code = +R"( + @interface Obj + @end + + @interface Obj () + @property(nonatomic, getter=myPropertyGetter) int property; + @end +)"; ASSERT_TRUE(PrintedWrittenPropertyDeclObjCMatches( - R"( - @interface Obj - @end - - @interface Obj () - @property(nonatomic, getter=myPropertyGetter) int property; - @end - )", + Code, "property", "Obj::property")); }