From 8ca7705aa3e5a2e0f39d00aaa170827369ec9784 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 22 Jun 2015 23:07:51 +0000 Subject: Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240353 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/AST/EvaluateAsRValueTest.cpp | 2 +- unittests/Basic/DiagnosticTest.cpp | 2 +- unittests/Basic/SourceManagerTest.cpp | 2 +- unittests/Basic/VirtualFileSystemTest.cpp | 2 +- unittests/CodeGen/BufferSourceTest.cpp | 2 +- unittests/Format/FormatTestJS.cpp | 2 +- unittests/Format/FormatTestJava.cpp | 2 +- unittests/Format/FormatTestProto.cpp | 2 +- unittests/Lex/PPCallbacksTest.cpp | 2 +- unittests/Tooling/RefactoringCallbacksTest.cpp | 2 +- unittests/Tooling/TestVisitor.h | 2 +- unittests/libclang/LibclangTest.cpp | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) (limited to 'unittests') diff --git a/unittests/AST/EvaluateAsRValueTest.cpp b/unittests/AST/EvaluateAsRValueTest.cpp index f1d3eb5296..820edbc7c3 100644 --- a/unittests/AST/EvaluateAsRValueTest.cpp +++ b/unittests/AST/EvaluateAsRValueTest.cpp @@ -79,7 +79,7 @@ class EvaluateConstantInitializersAction : public clang::ASTFrontendAction { } }; }; -} // namespace +} TEST(EvaluateAsRValue, FailsGracefullyForUnknownTypes) { // This is a regression test; the AST library used to trigger assertion diff --git a/unittests/Basic/DiagnosticTest.cpp b/unittests/Basic/DiagnosticTest.cpp index 100fda4af5..fa2b56e083 100644 --- a/unittests/Basic/DiagnosticTest.cpp +++ b/unittests/Basic/DiagnosticTest.cpp @@ -46,4 +46,4 @@ TEST(DiagnosticTest, suppressAndTrap) { EXPECT_FALSE(Diags.hasUnrecoverableErrorOccurred()); } -} // namespace +} diff --git a/unittests/Basic/SourceManagerTest.cpp b/unittests/Basic/SourceManagerTest.cpp index f087b69118..494c27a2f1 100644 --- a/unittests/Basic/SourceManagerTest.cpp +++ b/unittests/Basic/SourceManagerTest.cpp @@ -271,7 +271,7 @@ public: } }; -} // namespace +} TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { const char *header = diff --git a/unittests/Basic/VirtualFileSystemTest.cpp b/unittests/Basic/VirtualFileSystemTest.cpp index fc3004ee79..71d2d2b60c 100644 --- a/unittests/Basic/VirtualFileSystemTest.cpp +++ b/unittests/Basic/VirtualFileSystemTest.cpp @@ -279,7 +279,7 @@ struct ScopedDir { } operator StringRef() { return Path.str(); } }; -} // namespace +} TEST(VirtualFileSystemTest, BasicRealFSIteration) { ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); diff --git a/unittests/CodeGen/BufferSourceTest.cpp b/unittests/CodeGen/BufferSourceTest.cpp index 00f0677531..b2a8ba5808 100644 --- a/unittests/CodeGen/BufferSourceTest.cpp +++ b/unittests/CodeGen/BufferSourceTest.cpp @@ -74,4 +74,4 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { clang::ParseAST(compiler.getSema(), false, false); } -} // namespace +} diff --git a/unittests/Format/FormatTestJS.cpp b/unittests/Format/FormatTestJS.cpp index 715d0cb17e..15d62eb66c 100644 --- a/unittests/Format/FormatTestJS.cpp +++ b/unittests/Format/FormatTestJS.cpp @@ -893,5 +893,5 @@ TEST_F(FormatTestJS, IndexSignature) { verifyFormat("var x: {[k: string]: v};"); } -} // namespace format +} // end namespace tooling } // end namespace clang diff --git a/unittests/Format/FormatTestJava.cpp b/unittests/Format/FormatTestJava.cpp index 35b3b6ce2e..4c161e0180 100644 --- a/unittests/Format/FormatTestJava.cpp +++ b/unittests/Format/FormatTestJava.cpp @@ -501,5 +501,5 @@ TEST_F(FormatTestJava, AlignsBlockComments) { " void f() {}")); } -} // namespace format +} // end namespace tooling } // end namespace clang diff --git a/unittests/Format/FormatTestProto.cpp b/unittests/Format/FormatTestProto.cpp index e90c29f24c..ac8fcbdda4 100644 --- a/unittests/Format/FormatTestProto.cpp +++ b/unittests/Format/FormatTestProto.cpp @@ -152,5 +152,5 @@ TEST_F(FormatTestProto, FormatsService) { "};"); } -} // namespace format +} // end namespace tooling } // end namespace clang diff --git a/unittests/Lex/PPCallbacksTest.cpp b/unittests/Lex/PPCallbacksTest.cpp index 6ae71ebcfc..94812fc93d 100644 --- a/unittests/Lex/PPCallbacksTest.cpp +++ b/unittests/Lex/PPCallbacksTest.cpp @@ -346,4 +346,4 @@ TEST_F(PPCallbacksTest, OpenCLExtensionPragmaDisabled) { ASSERT_EQ(ExpectedState, Parameters.State); } -} // namespace +} // anonoymous namespace diff --git a/unittests/Tooling/RefactoringCallbacksTest.cpp b/unittests/Tooling/RefactoringCallbacksTest.cpp index ea4d8da92a..c2b331c70a 100644 --- a/unittests/Tooling/RefactoringCallbacksTest.cpp +++ b/unittests/Tooling/RefactoringCallbacksTest.cpp @@ -96,5 +96,5 @@ TEST(RefactoringCallbacksTest, RemovesEntireIfOnEmptyElse) { Callback); } -} // namespace tooling +} // end namespace ast_matchers } // end namespace clang diff --git a/unittests/Tooling/TestVisitor.h b/unittests/Tooling/TestVisitor.h index 77a42af55a..f4a0039448 100644 --- a/unittests/Tooling/TestVisitor.h +++ b/unittests/Tooling/TestVisitor.h @@ -229,6 +229,6 @@ protected: std::vector DisallowedMatches; std::vector ExpectedMatches; }; -} // namespace clang +} #endif diff --git a/unittests/libclang/LibclangTest.cpp b/unittests/libclang/LibclangTest.cpp index 650d28b622..e827ebc0da 100644 --- a/unittests/libclang/LibclangTest.cpp +++ b/unittests/libclang/LibclangTest.cpp @@ -68,7 +68,7 @@ struct TestVFO { clang_VirtualFileOverlay_dispose(VFO); } }; -} // namespace +} TEST(libclang, VirtualFileOverlay_Basic) { const char *contents = -- cgit v1.2.3