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