diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 | 
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /unittests/AST/DeclPrinterTest.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Diffstat (limited to 'unittests/AST/DeclPrinterTest.cpp')
| -rw-r--r-- | unittests/AST/DeclPrinterTest.cpp | 35 | 
1 files changed, 17 insertions, 18 deletions
| diff --git a/unittests/AST/DeclPrinterTest.cpp b/unittests/AST/DeclPrinterTest.cpp index 5340756c03db..9f179c4a3f2d 100644 --- a/unittests/AST/DeclPrinterTest.cpp +++ b/unittests/AST/DeclPrinterTest.cpp @@ -268,8 +268,8 @@ TEST(DeclPrinter, TestCXXRecordDecl4) {      "class Z { int a; };"      "class A : Z { int b; };",      "A", -    "class A :  Z {\n}")); -    // Should be: with semicolon, with { ... }, without two spaces +    "class A : Z {\n}")); +    // Should be: with semicolon, with { ... }  }  TEST(DeclPrinter, TestCXXRecordDecl5) { @@ -277,8 +277,8 @@ TEST(DeclPrinter, TestCXXRecordDecl5) {      "struct Z { int a; };"      "struct A : Z { int b; };",      "A", -    "struct A :  Z {\n}")); -    // Should be: with semicolon, with { ... }, without two spaces +    "struct A : Z {\n}")); +    // Should be: with semicolon, with { ... }  }  TEST(DeclPrinter, TestCXXRecordDecl6) { @@ -313,8 +313,8 @@ TEST(DeclPrinter, TestCXXRecordDecl9) {      "class Z { int a; };"      "class A : virtual Z { int b; };",      "A", -    "class A : virtual  Z {\n}")); -    // Should be: with semicolon, with { ... }, without two spaces +    "class A : virtual Z {\n}")); +    // Should be: with semicolon, with { ... }  }  TEST(DeclPrinter, TestCXXRecordDecl10) { @@ -544,6 +544,7 @@ TEST(DeclPrinter, TestCXXConstructorDecl10) {      "};",      constructorDecl(ofClass(hasName("A"))).bind("id"),      "A<T...>(const A<T...> &a)")); +    // WRONG; Should be: "A(const A<T...> &a);"  }  TEST(DeclPrinter, TestCXXConstructorDecl11) { @@ -553,8 +554,8 @@ TEST(DeclPrinter, TestCXXConstructorDecl11) {      "  A(T&&... ts) : T(ts)... {}"      "};",      constructorDecl(ofClass(hasName("A"))).bind("id"), -    "A<T...>(T &&ts...) : T(ts)...")); -    // WRONG; Should be: "A(T&&... ts) : T(ts)..." +    "A<T...>(T &&...ts) : T(ts)...")); +    // WRONG; Should be: "A(T &&...ts) : T(ts)... {}"  }  TEST(DeclPrinter, TestCXXDestructorDecl1) { @@ -1011,8 +1012,8 @@ TEST(DeclPrinter, TestClassTemplateDecl10) {      "template<typename... T>"      "struct A { int a; };",      classTemplateDecl(hasName("A")).bind("id"), -    "template <typename ... T> struct A {\n}")); -    // Should be: with semicolon, with { ... }, without spaces before '...' +    "template <typename ...T> struct A {\n}")); +    // Should be: with semicolon, with { ... }  }  TEST(DeclPrinter, TestClassTemplateDecl11) { @@ -1020,8 +1021,8 @@ TEST(DeclPrinter, TestClassTemplateDecl11) {      "template<typename... T>"      "struct A : public T... { int a; };",      classTemplateDecl(hasName("A")).bind("id"), -    "template <typename ... T> struct A : public T... {\n}")); -    // Should be: with semicolon, with { ... }, without spaces before '...' +    "template <typename ...T> struct A : public T... {\n}")); +    // Should be: with semicolon, with { ... }  }  TEST(DeclPrinter, TestClassTemplatePartialSpecializationDecl1) { @@ -1080,9 +1081,7 @@ TEST(DeclPrinter, TestFunctionTemplateDecl3) {      "template<typename... T>"      "void A(T... a);",      functionTemplateDecl(hasName("A")).bind("id"), -    "template <typename ... T> void A(T a...)")); -    // WRONG; Should be: "template <typename ... T> void A(T... a)" -    //        (not "T a...") +    "template <typename ...T> void A(T ...a)"));      // Should be: with semicolon.  } @@ -1239,7 +1238,7 @@ TEST(DeclPrinter, TestTemplateArgumentList13) {      "};",      "A",      "Z<T...> A")); -    // Should be: with semicolon, without extra space in "> >" +    // Should be: with semicolon  }  TEST(DeclPrinter, TestTemplateArgumentList14) { @@ -1251,7 +1250,7 @@ TEST(DeclPrinter, TestTemplateArgumentList14) {      "};",      "A",      "Z<Y<T>...> A")); -    // Should be: with semicolon, without extra space in "> >" +    // Should be: with semicolon  }  TEST(DeclPrinter, TestTemplateArgumentList15) { @@ -1262,7 +1261,7 @@ TEST(DeclPrinter, TestTemplateArgumentList15) {      "};",      "A",      "Z<sizeof...(T)> A")); -    // Should be: with semicolon, without extra space in "> >" +    // Should be: with semicolon  }  TEST(DeclPrinter, TestObjCMethod1) { | 
