This is an archive of the discontinued LLVM Phabricator instance.

Add an option to fill container for ref
ClosedPublic

Authored by usaxena95 on May 18 2022, 1:12 PM.

Details

Summary

This allows index implementations to fill container details when required specially when computing containerID is expensive.

Diff Detail

Event Timeline

usaxena95 created this revision.May 18 2022, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 1:12 PM
Herald added a subscriber: arphaman. · View Herald Transcript
usaxena95 requested review of this revision.May 18 2022, 1:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 1:12 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Can you also update the remote-index protos & marshalling logic in:

  • clang-tools-extra/clangd/index/remote/Index.proto
  • clang-tools-extra/clangd/index/remote/marshalling/Marshalling.cpp
clang-tools-extra/clangd/index/Index.h
75

let's drop the SymbolID for also mention Index implementations may chose to populate containers no matter what.

76

can you default this to false?

usaxena95 updated this revision to Diff 430657.May 19 2022, 6:52 AM
usaxena95 marked 2 inline comments as done.

Addressed comments.

kadircet accepted this revision.May 19 2022, 7:01 AM

thanks, lgtm!

This revision is now accepted and ready to land.May 19 2022, 7:01 AM
This revision was landed with ongoing or failed builds.May 19 2022, 7:05 AM
This revision was automatically updated to reflect the committed changes.
nridge added a subscriber: nridge.May 22 2022, 1:11 AM