diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-06-22 09:47:44 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-06-22 09:47:44 +0000 |
commit | 3d9d929e42028c353b0579a1a925391319664a60 (patch) | |
tree | 9fa63e425da0b4e62d2ddc1814b1f6069c7da892 /clang/unittests | |
parent | faf4b655accf9fead77456243fd98da7fca46a20 (diff) | |
download | llvm-3d9d929e42028c353b0579a1a925391319664a60.zip llvm-3d9d929e42028c353b0579a1a925391319664a60.tar.gz llvm-3d9d929e42028c353b0579a1a925391319664a60.tar.bz2 |
Fixed/added namespace ending comments using clang-tidy. NFC
The patch is generated using this command:
$ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \
-checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \
work/llvm/tools/clang
To reduce churn, not touching namespaces spanning less than 10 lines.
llvm-svn: 240270
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/AST/EvaluateAsRValueTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Basic/DiagnosticTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Basic/SourceManagerTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Basic/VirtualFileSystemTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/CodeGen/BufferSourceTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Format/FormatTestJava.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Format/FormatTestProto.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Lex/PPCallbacksTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Tooling/RefactoringCallbacksTest.cpp | 2 | ||||
-rw-r--r-- | clang/unittests/Tooling/TestVisitor.h | 2 | ||||
-rw-r--r-- | clang/unittests/libclang/LibclangTest.cpp | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/clang/unittests/AST/EvaluateAsRValueTest.cpp b/clang/unittests/AST/EvaluateAsRValueTest.cpp index 820edbc..f1d3eb5 100644 --- a/clang/unittests/AST/EvaluateAsRValueTest.cpp +++ b/clang/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/clang/unittests/Basic/DiagnosticTest.cpp b/clang/unittests/Basic/DiagnosticTest.cpp index fa2b56e..100fda4 100644 --- a/clang/unittests/Basic/DiagnosticTest.cpp +++ b/clang/unittests/Basic/DiagnosticTest.cpp @@ -46,4 +46,4 @@ TEST(DiagnosticTest, suppressAndTrap) { EXPECT_FALSE(Diags.hasUnrecoverableErrorOccurred()); } -} +} // namespace diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index 494c27a..f087b69 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -271,7 +271,7 @@ public: } }; -} +} // namespace TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { const char *header = diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index 71d2d2b..fc3004e 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/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/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp index b2a8ba5..00f0677 100644 --- a/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -74,4 +74,4 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { clang::ParseAST(compiler.getSema(), false, false); } -} +} // namespace diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 15d62eb..715d0cb 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -893,5 +893,5 @@ TEST_F(FormatTestJS, IndexSignature) { verifyFormat("var x: {[k: string]: v};"); } -} // end namespace tooling +} // namespace format } // end namespace clang diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp index 4c161e0..35b3b6c 100644 --- a/clang/unittests/Format/FormatTestJava.cpp +++ b/clang/unittests/Format/FormatTestJava.cpp @@ -501,5 +501,5 @@ TEST_F(FormatTestJava, AlignsBlockComments) { " void f() {}")); } -} // end namespace tooling +} // namespace format } // end namespace clang diff --git a/clang/unittests/Format/FormatTestProto.cpp b/clang/unittests/Format/FormatTestProto.cpp index ac8fcbd..e90c29f 100644 --- a/clang/unittests/Format/FormatTestProto.cpp +++ b/clang/unittests/Format/FormatTestProto.cpp @@ -152,5 +152,5 @@ TEST_F(FormatTestProto, FormatsService) { "};"); } -} // end namespace tooling +} // namespace format } // end namespace clang diff --git a/clang/unittests/Lex/PPCallbacksTest.cpp b/clang/unittests/Lex/PPCallbacksTest.cpp index 94812fc..6ae71eb 100644 --- a/clang/unittests/Lex/PPCallbacksTest.cpp +++ b/clang/unittests/Lex/PPCallbacksTest.cpp @@ -346,4 +346,4 @@ TEST_F(PPCallbacksTest, OpenCLExtensionPragmaDisabled) { ASSERT_EQ(ExpectedState, Parameters.State); } -} // anonoymous namespace +} // namespace diff --git a/clang/unittests/Tooling/RefactoringCallbacksTest.cpp b/clang/unittests/Tooling/RefactoringCallbacksTest.cpp index c2b331c..ea4d8da 100644 --- a/clang/unittests/Tooling/RefactoringCallbacksTest.cpp +++ b/clang/unittests/Tooling/RefactoringCallbacksTest.cpp @@ -96,5 +96,5 @@ TEST(RefactoringCallbacksTest, RemovesEntireIfOnEmptyElse) { Callback); } -} // end namespace ast_matchers +} // namespace tooling } // end namespace clang diff --git a/clang/unittests/Tooling/TestVisitor.h b/clang/unittests/Tooling/TestVisitor.h index f4a0039..77a42af 100644 --- a/clang/unittests/Tooling/TestVisitor.h +++ b/clang/unittests/Tooling/TestVisitor.h @@ -229,6 +229,6 @@ protected: std::vector<MatchCandidate> DisallowedMatches; std::vector<ExpectedMatch> ExpectedMatches; }; -} +} // namespace clang #endif diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp index e827ebc..650d28b 100644 --- a/clang/unittests/libclang/LibclangTest.cpp +++ b/clang/unittests/libclang/LibclangTest.cpp @@ -68,7 +68,7 @@ struct TestVFO { clang_VirtualFileOverlay_dispose(VFO); } }; -} +} // namespace TEST(libclang, VirtualFileOverlay_Basic) { const char *contents = |