diff options
Diffstat (limited to 'unittests/AST/DeclPrinterTest.cpp')
-rw-r--r-- | unittests/AST/DeclPrinterTest.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/unittests/AST/DeclPrinterTest.cpp b/unittests/AST/DeclPrinterTest.cpp index 34739f7e8a..381536d9cd 100644 --- a/unittests/AST/DeclPrinterTest.cpp +++ b/unittests/AST/DeclPrinterTest.cpp @@ -354,8 +354,8 @@ TEST(DeclPrinter, TestFunctionDecl7) { ASSERT_TRUE(PrintedDeclCXX11Matches( "constexpr int A(int a);", "A", - "int A(int a)")); - // WRONG; Should be: "constexpr int A(int a);" + "constexpr int A(int a)")); + // Should be: with semicolon } TEST(DeclPrinter, TestFunctionDecl8) { @@ -480,8 +480,7 @@ TEST(DeclPrinter, TestCXXConstructorDecl7) { " constexpr A();" "};", constructorDecl(ofClass(hasName("A"))).bind("id"), - "A()")); - // WRONG; Should be: "constexpr A();" + "constexpr A()")); } TEST(DeclPrinter, TestCXXConstructorDecl8) { @@ -519,8 +518,7 @@ 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)...")); } TEST(DeclPrinter, TestCXXDestructorDecl1) { @@ -529,8 +527,7 @@ TEST(DeclPrinter, TestCXXDestructorDecl1) { " ~A();" "};", destructorDecl(ofClass(hasName("A"))).bind("id"), - "void ~A()")); - // WRONG; Should be: "~A();" + "~A()")); } TEST(DeclPrinter, TestCXXDestructorDecl2) { @@ -539,8 +536,7 @@ TEST(DeclPrinter, TestCXXDestructorDecl2) { " virtual ~A();" "};", destructorDecl(ofClass(hasName("A"))).bind("id"), - "virtual void ~A()")); - // WRONG; Should be: "virtual ~A();" + "virtual ~A()")); } TEST(DeclPrinter, TestCXXConversionDecl1) { @@ -765,8 +761,8 @@ TEST(DeclPrinter, TestCXXMethodDecl_RefQualifier1) { " void A(int a) &;" "};", "A", - "void A(int a)")); - // WRONG; Should be: "void A(int a) &;" + "void A(int a) &")); + // Should be: with semicolon } TEST(DeclPrinter, TestCXXMethodDecl_RefQualifier2) { @@ -775,8 +771,8 @@ TEST(DeclPrinter, TestCXXMethodDecl_RefQualifier2) { " void A(int a) &&;" "};", "A", - "void A(int a)")); - // WRONG; Should be: "void A(int a) &&;" + "void A(int a) &&")); + // Should be: with semicolon } TEST(DeclPrinter, TestFunctionDecl_ExceptionSpecification1) { |