Эх сурвалжийг харах

[LifetimeAnalysis] don't use raw string literals in macros

They broke the AArch64 bots (gcc does not support it)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371241 91177308-0d34-0410-b5e6-96231b3b80d8
Matthias Gehre 6 жил өмнө
parent
commit
67f5be4d26

+ 23 - 29
unittests/Sema/GslOwnerPointerInference.cpp

@@ -14,48 +14,42 @@ namespace clang {
 using namespace ast_matchers;
 
 TEST(OwnerPointer, BothHaveAttributes) {
-  EXPECT_TRUE(matches(
-    R"cpp(
-      template<class T>
-      class [[gsl::Owner]] C;
+  EXPECT_TRUE(matches("template<class T>"
+                      "class [[gsl::Owner]] C;"
 
-      template<class T>
-      class [[gsl::Owner]] C {};
+                      "template<class T>"
+                      "class [[gsl::Owner]] C {};"
 
-      C<int> c;
-  )cpp",
-    classTemplateSpecializationDecl(hasName("C"), hasAttr(clang::attr::Owner))));
+                      "C<int> c;",
+                      classTemplateSpecializationDecl(
+                          hasName("C"), hasAttr(clang::attr::Owner))));
 }
 
 TEST(OwnerPointer, ForwardDeclOnly) {
-  EXPECT_TRUE(matches(
-    R"cpp(
-      template<class T>
-      class [[gsl::Owner]] C;
+  EXPECT_TRUE(matches("template<class T>"
+                      "class [[gsl::Owner]] C;"
 
-      template<class T>
-      class C {};
+                      "template<class T>"
+                      "class C {};"
 
-      C<int> c;
-  )cpp",
-    classTemplateSpecializationDecl(hasName("C"), hasAttr(clang::attr::Owner))));
+                      "C<int> c;",
+                      classTemplateSpecializationDecl(
+                          hasName("C"), hasAttr(clang::attr::Owner))));
 }
 
 TEST(OwnerPointer, LateForwardDeclOnly) {
-  EXPECT_TRUE(matches(
-    R"cpp(
-      template<class T>
-      class C;
+  EXPECT_TRUE(matches("template<class T>"
+                      "class C;"
 
-      template<class T>
-      class C {};
+                      "template<class T>"
+                      "class C {};"
 
-      template<class T>
-      class [[gsl::Owner]] C;
+                      "template<class T>"
+                      "class [[gsl::Owner]] C;"
 
-      C<int> c;
-  )cpp",
-    classTemplateSpecializationDecl(hasName("C"), hasAttr(clang::attr::Owner))));
+                      "C<int> c;",
+                      classTemplateSpecializationDecl(
+                          hasName("C"), hasAttr(clang::attr::Owner))));
 }
 
 } // namespace clang