summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clangd/SerializationTests.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-01-07 15:45:19 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-01-07 15:45:19 +0000
commitf2001aa74394885dc178c5997b83687acb4f55e4 (patch)
tree80666e16bbebadef8f35d1d962e09da8a7812d13 /clang-tools-extra/unittests/clangd/SerializationTests.cpp
parent25d3de8a0ac4d65f2ac9820ba62a372414780649 (diff)
downloadbcm5719-llvm-f2001aa74394885dc178c5997b83687acb4f55e4.tar.gz
bcm5719-llvm-f2001aa74394885dc178c5997b83687acb4f55e4.zip
[clangd] Remove 'using namespace llvm' from .cpp files. NFC
The new guideline is to qualify with 'llvm::' explicitly both in '.h' and '.cpp' files. This simplifies moving the code between header and source files and is easier to keep consistent. llvm-svn: 350531
Diffstat (limited to 'clang-tools-extra/unittests/clangd/SerializationTests.cpp')
-rw-r--r--clang-tools-extra/unittests/clangd/SerializationTests.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang-tools-extra/unittests/clangd/SerializationTests.cpp b/clang-tools-extra/unittests/clangd/SerializationTests.cpp
index 9afc42e3c10..fe571c4a7e9 100644
--- a/clang-tools-extra/unittests/clangd/SerializationTests.cpp
+++ b/clang-tools-extra/unittests/clangd/SerializationTests.cpp
@@ -20,7 +20,6 @@ using testing::Pair;
using testing::UnorderedElementsAre;
using testing::UnorderedElementsAreArray;
-using namespace llvm;
namespace clang {
namespace clangd {
namespace {
@@ -158,7 +157,7 @@ TEST(SerializationTest, BinaryConversions) {
// Write to binary format, and parse again.
IndexFileOut Out(*In);
Out.Format = IndexFileFormat::RIFF;
- std::string Serialized = to_string(Out);
+ std::string Serialized = llvm::to_string(Out);
auto In2 = readIndexFile(Serialized);
ASSERT_TRUE(bool(In2)) << In.takeError();
@@ -191,7 +190,7 @@ TEST(SerializationTest, SrcsTest) {
Out.Format = IndexFileFormat::RIFF;
Out.Sources = &Sources;
{
- std::string Serialized = to_string(Out);
+ std::string Serialized = llvm::to_string(Out);
auto In = readIndexFile(Serialized);
ASSERT_TRUE(bool(In)) << In.takeError();
OpenPOWER on IntegriCloud