summaryrefslogtreecommitdiffstats
path: root/unittests/clangd/QualityTests.cpp
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2019-01-18 19:46:00 +0000
committerJordan Rupprecht <rupprecht@google.com>2019-01-18 19:46:00 +0000
commit5026a9a16d10a2edf09be54c7225f49b5789c69e (patch)
tree85c1e1c98d2a81ed687b44f5dd2c917176506ae8 /unittests/clangd/QualityTests.cpp
parentc0c923fb4d65ab16332fc84188b46508de0c35af (diff)
parent53b849a7ec90500d4c5970f3624c9a5321aacb16 (diff)
Creating branches/google/stable and tags/google/stable/2019-01-18 from r351319
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/branches/google/stable@351578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/clangd/QualityTests.cpp')
-rw-r--r--unittests/clangd/QualityTests.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/unittests/clangd/QualityTests.cpp b/unittests/clangd/QualityTests.cpp
index f1a1fdae..9175d6bc 100644
--- a/unittests/clangd/QualityTests.cpp
+++ b/unittests/clangd/QualityTests.cpp
@@ -30,7 +30,6 @@
#include "gtest/gtest.h"
#include <vector>
-using namespace llvm;
namespace clang {
namespace clangd {
@@ -253,7 +252,7 @@ TEST(QualityTests, SymbolRelevanceSignalsSanity) {
SymbolRelevanceSignals IndexProximate;
IndexProximate.SymbolURI = "unittest:/foo/bar.h";
- StringMap<SourceParams> ProxSources;
+ llvm::StringMap<SourceParams> ProxSources;
ProxSources.try_emplace(testPath("foo/baz.h"));
URIDistance Distance(ProxSources);
IndexProximate.FileProximityMatch = &Distance;
@@ -371,7 +370,7 @@ TEST(QualityTests, IsInstanceMember) {
Rel.merge(BarSym);
EXPECT_TRUE(Rel.IsInstanceMember);
- Rel.IsInstanceMember =false;
+ Rel.IsInstanceMember = false;
const Symbol &TplSym = findSymbol(Symbols, "Foo::tpl");
Rel.merge(TplSym);
EXPECT_TRUE(Rel.IsInstanceMember);
@@ -429,7 +428,7 @@ TEST(QualityTests, Operator) {
auto Header = TestTU::withHeaderCode(R"cpp(
class Foo {
public:
- bool operator<(const Foo& f1, const Foo& f2);
+ bool operator<(const Foo& f1);
};
)cpp");
auto AST = Header.build();