~pali/llvm/clang-tools-extra-trunk

« back to all changes in this revision

Viewing changes to clangd/index/MemIndex.cpp

  • Committer: hokein
  • Date: 2019-10-17 14:08:28 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:clang-tools-extra/trunk:375117
[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

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
      Req.Limit.getValueOr(std::numeric_limits<uint32_t>::max());
93
93
  for (const SymbolID &Subject : Req.Subjects) {
94
94
    LookupRequest LookupReq;
95
 
    auto It = Relations.find(std::make_pair(Subject, Req.Predicate));
 
95
    auto It = Relations.find(
 
96
        std::make_pair(Subject, static_cast<uint8_t>(Req.Predicate)));
96
97
    if (It != Relations.end()) {
97
98
      for (const auto &Obj : It->second) {
98
99
        if (Remaining > 0) {