[cfe-dev] Adding indexing support to Clangd
Vladimir Voskresensky via cfe-dev
cfe-dev at lists.llvm.org
Mon Aug 14 23:57:30 PDT 2017
On 14.08.2017 11:06, Ilya Biryukov wrote:
>
> Could you provide more info, please.
> Are USRs different for same named file-local entries (i.e. static
> functions)?
>
>
> Looking at USRGenerator::VisitVarDecl, it seems they will be the same
> across different translation units.
> For local entities, "location" is part of the USR. ("Location" is a
> filename + an offset from the start of that file).
That was my point, U in USRs are not so Unified, so can not be used as
universal keys for queries in DB.
Adding location to USR makes them less usable in index if fast
incremental re-index is going to be implemented vs. full reparse on each
change.
Vladimir.
>
> --
> Regards,
> Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170815/4fc6f608/attachment.html>
More information about the cfe-dev
mailing list