diff options
| author | Alexander Kornienko <alexfh@google.com> | 2014-04-29 15:50:14 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2014-04-29 15:50:14 +0000 |
| commit | 3b26849f38f807ef4bf94bb4ade3c58da1dfa48e (patch) | |
| tree | e74b9b67de2f4a8815f87b8ff2d307bbef71e800 /clang-tools-extra/unittests | |
| parent | c282e54eb68e5313ca4b60c6fbbfa58369f2f66c (diff) | |
| download | bcm5719-llvm-3b26849f38f807ef4bf94bb4ade3c58da1dfa48e.tar.gz bcm5719-llvm-3b26849f38f807ef4bf94bb4ade3c58da1dfa48e.zip | |
Fix the message for "Move constructor declared explicit".
Make the tests for removal of 'explicit' more diverse.
llvm-svn: 207534
Diffstat (limited to 'clang-tools-extra/unittests')
| -rw-r--r-- | clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp index 3c024b1ed7e..d986d3bcb04 100644 --- a/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp @@ -39,12 +39,12 @@ TEST(ExplicitConstructorCheckTest, OutOfLineDefinitions) { TEST(ExplicitConstructorCheckTest, RemoveExplicit) { EXPECT_EQ("class A { A(const A&); };\n" - "class B { /*asdf*/ B(const B&); };\n" - "class C { /*asdf*/ C(const C&); };", + "class B { /*asdf*/ B(B&&); };\n" + "class C { /*asdf*/ C(const C&, int i = 0); };", runCheckOnCode<ExplicitConstructorCheck>( "class A { explicit A(const A&); };\n" - "class B { explicit /*asdf*/ B(const B&); };\n" - "class C { explicit/*asdf*/ C(const C&); };")); + "class B { explicit /*asdf*/ B(B&&); };\n" + "class C { explicit/*asdf*/ C(const C&, int i = 0); };")); } } // namespace test |

