This revision was automatically updated to reflect the committed changes.
Closed by commit rC357799: Fix error in NamedDeclPrinterTest (authored by 
dgoldman, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D60326?vs=193917&id=193935#toc

Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60326/new/

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