aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-06-22 23:07:51 +0000
committerAlexander Kornienko <alexfh@google.com>2015-06-22 23:07:51 +0000
commit8ca7705aa3e5a2e0f39d00aaa170827369ec9784 (patch)
tree2a33ddff0e4b77ce71382ca30a2f6ed5875a4cff /unittests
parent4dcc0f7da78882b0946f6f46ec6397dd566b4e72 (diff)
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/AST/EvaluateAsRValueTest.cpp2
-rw-r--r--unittests/Basic/DiagnosticTest.cpp2
-rw-r--r--unittests/Basic/SourceManagerTest.cpp2
-rw-r--r--unittests/Basic/VirtualFileSystemTest.cpp2
-rw-r--r--unittests/CodeGen/BufferSourceTest.cpp2
-rw-r--r--unittests/Format/FormatTestJS.cpp2
-rw-r--r--unittests/Format/FormatTestJava.cpp2
-rw-r--r--unittests/Format/FormatTestProto.cpp2
-rw-r--r--unittests/Lex/PPCallbacksTest.cpp2
-rw-r--r--unittests/Tooling/RefactoringCallbacksTest.cpp2
-rw-r--r--unittests/Tooling/TestVisitor.h2
-rw-r--r--unittests/libclang/LibclangTest.cpp2
12 files changed, 12 insertions, 12 deletions
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<MatchCandidate> DisallowedMatches;
std::vector<ExpectedMatch> 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 =