summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMatthias Gehre <M.Gehre@gmx.de>2019-09-06 19:15:02 +0000
committerMatthias Gehre <M.Gehre@gmx.de>2019-09-06 19:15:02 +0000
commit4934f013b12b1a8d35efa69165c17eed92c52ff9 (patch)
tree343e309e05ab610df15c957a4fe9c09185734cf9 /clang
parent0364d89b6d60e305ffec8bae74e9564f4e9355f2 (diff)
downloadbcm5719-llvm-4934f013b12b1a8d35efa69165c17eed92c52ff9.tar.gz
bcm5719-llvm-4934f013b12b1a8d35efa69165c17eed92c52ff9.zip
[LifetimeAnalysis] don't use raw string literals in macros
They broke the AArch64 bots (gcc does not support it) llvm-svn: 371241
Diffstat (limited to 'clang')
-rw-r--r--clang/unittests/Sema/GslOwnerPointerInference.cpp52
1 files changed, 23 insertions, 29 deletions
diff --git a/clang/unittests/Sema/GslOwnerPointerInference.cpp b/clang/unittests/Sema/GslOwnerPointerInference.cpp
index e340ccb4127..5d86a8806cb 100644
--- a/clang/unittests/Sema/GslOwnerPointerInference.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud