[PATCH] D60326: Fix error in NamedDeclPrinterTest
David Goldman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 5 12:15:54 PDT 2019
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"));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60326.193935.patch
Type: text/x-patch
Size: 1127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190405/9f72597c/attachment.bin>
More information about the cfe-commits
mailing list