[cfe-dev] Adding indexing support to Clangd

Ilya Biryukov via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 14 01:06:46 PDT 2017

> 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).

Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170814/19b62baa/attachment.html>

More information about the cfe-dev mailing list