dgoldman created this revision.
dgoldman added reviewers: sammccall, ilya-biryukov.
Herald added subscribers: cfe-commits, jfb.
Herald added a project: clang.

Caused by D56924 <https://reviews.llvm.org/D56924>, shouldn't use raw string 
literals in macros.


Repository:
  rC Clang

https://reviews.llvm.org/D60326

Files:
  unittests/AST/NamedDeclPrinterTest.cpp


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"));
 }


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"));
 }
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to