Skip to content

Commit

Permalink
feat(cxx_indexer): add kRefFile to EdgeKinds (#4931)
Browse files Browse the repository at this point in the history
documented in the schema at https://kythe.io/docs/schema#reffile
  • Loading branch information
justbuchanan committed May 16, 2021
1 parent 12f483a commit c0e9299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kythe/cxx/common/indexing/KytheGraphRecorder.cc
Expand Up @@ -83,7 +83,8 @@ static const std::string* kEdgeKindSpellings[] = {
new std::string("/kythe/edge/ref/id"),
new std::string("/kythe/edge/ref/writes"),
new std::string("/kythe/edge/ref/writes/implicit"),
new std::string("/kythe/edge/influences")};
new std::string("/kythe/edge/influences"),
new std::string("/kythe/edge/ref/file")};

bool of_spelling(absl::string_view str, EdgeKindID* edge_id) {
size_t edge_index = 0;
Expand Down
3 changes: 2 additions & 1 deletion kythe/cxx/common/indexing/KytheGraphRecorder.h
Expand Up @@ -125,7 +125,8 @@ enum class EdgeKindID {
kRefId,
kRefWrites,
kRefWritesImplicit,
kInfluences
kInfluences,
kRefFile
};

/// \brief Returns the Kythe spelling of `node_kind_id`
Expand Down

0 comments on commit c0e9299

Please sign in to comment.