diff options
| author | Haojian Wu <hokein@google.com> | 2019-10-17 14:08:28 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2019-10-17 14:08:28 +0000 |
| commit | c8e3f43ab514bf527b2d2d01f66d4c921a2985c4 (patch) | |
| tree | 929aee135d5f45fea02ac467b4967c576fcab3d0 /clang-tools-extra/clangd/unittests/FileIndexTests.cpp | |
| parent | 849d67a70080982cc1261759015a67b06b25eb16 (diff) | |
| download | bcm5719-llvm-c8e3f43ab514bf527b2d2d01f66d4c921a2985c4.tar.gz bcm5719-llvm-c8e3f43ab514bf527b2d2d01f66d4c921a2985c4.zip | |
[clangd] Use our own relation kind.
Summary:
Move the RelationKind from Serialization.h to Relation.h. This patch doesn't
introduce any breaking changes.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68981
llvm-svn: 375117
Diffstat (limited to 'clang-tools-extra/clangd/unittests/FileIndexTests.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/unittests/FileIndexTests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/unittests/FileIndexTests.cpp b/clang-tools-extra/clangd/unittests/FileIndexTests.cpp index 61f6e60c3a2..bc07217835b 100644 --- a/clang-tools-extra/clangd/unittests/FileIndexTests.cpp +++ b/clang-tools-extra/clangd/unittests/FileIndexTests.cpp @@ -364,7 +364,7 @@ TEST(FileIndexTest, Relations) { uint32_t Results = 0; RelationsRequest Req; Req.Subjects.insert(A); - Req.Predicate = index::SymbolRole::RelationBaseOf; + Req.Predicate = RelationKind::BaseOf; Index.relations(Req, [&](const SymbolID &, const Symbol &) { ++Results; }); EXPECT_EQ(Results, 1u); } |

