Clear namespace.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <Basic/URI.h>
|
||||
|
||||
namespace {
|
||||
namespace clice {
|
||||
|
||||
using namespace clice;
|
||||
namespace {
|
||||
|
||||
TEST(URITest, ConstructorAndAccessors) {
|
||||
URI uri("https", "reviews.llvm.org", "/D41946");
|
||||
@@ -43,3 +43,5 @@ TEST(URITest, ParseFunction) {
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace clice
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
#include "Compiler/Compiler.h"
|
||||
#include <Support/FileSystem.h>
|
||||
|
||||
namespace {
|
||||
namespace clice {
|
||||
|
||||
using namespace clice;
|
||||
namespace {
|
||||
|
||||
TEST(Compiler, buildAST) {
|
||||
const char* code = R"cpp(
|
||||
@@ -223,3 +223,6 @@ export int foo = 1;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace clice
|
||||
|
||||
|
||||
@@ -2,12 +2,10 @@
|
||||
#include <Compiler/Compiler.h>
|
||||
#include <Compiler/Resolver.h>
|
||||
|
||||
namespace clice {
|
||||
|
||||
namespace {
|
||||
|
||||
using namespace clice;
|
||||
|
||||
namespace testing {} // namespace testing
|
||||
|
||||
struct TemplateResolverTester : public clang::RecursiveASTVisitor<TemplateResolverTester> {
|
||||
TemplateResolverTester(llvm::StringRef code) {
|
||||
compileArgs = {
|
||||
@@ -485,3 +483,5 @@ struct test {
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace clice
|
||||
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
#include "../Test.h"
|
||||
#include "Compiler/Compiler.h"
|
||||
#include "Support/Support.h"
|
||||
|
||||
#include "Feature/CodeCompletion.h"
|
||||
|
||||
namespace {
|
||||
namespace clice {
|
||||
|
||||
using namespace clice;
|
||||
namespace {
|
||||
|
||||
TEST(Feature, CodeCompletion) {
|
||||
const char* code = R"cpp(
|
||||
@@ -41,3 +38,6 @@ int main() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace clice
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "../Test.h"
|
||||
#include "Server/Async.h"
|
||||
|
||||
namespace {
|
||||
namespace clice {
|
||||
|
||||
using namespace clice;
|
||||
namespace {
|
||||
|
||||
async::promise<int> add(int a, int b) {
|
||||
co_return a + b;
|
||||
@@ -23,3 +23,6 @@ TEST(clice, coroutine) {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace clice
|
||||
|
||||
|
||||
@@ -38,11 +38,11 @@ TEST(Support, JSON) {
|
||||
{"y", 2},
|
||||
};
|
||||
|
||||
auto point = clice::json::deserialize<Point>(std::move(object));
|
||||
auto point = json::deserialize<Point>(std::move(object));
|
||||
ASSERT_EQ(point.x, 1);
|
||||
ASSERT_EQ(point.y, 2);
|
||||
|
||||
auto result = clice::json::serialize(point);
|
||||
auto result = json::serialize(point);
|
||||
ASSERT_EQ(result, object);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user