[cfe-commits] r76515 - in /cfe/trunk: include/clang/Analysis/CallGraph.h include/clang/Index/Entity.h include/clang/Index/EntityHandler.h include/clang/Index/IndexProvider.h lib/Analysis/CallGraph.cpp lib/Index/Entity.cpp lib/Index/EntityImpl.h l

Eli Friedman eli.friedman at gmail.com
Mon Jul 20 18:10:29 PDT 2009


On Mon, Jul 20, 2009 at 5:07 PM, Argiris Kirtzidis<akyrtzi at gmail.com> wrote:
> Author: akirtzidis
> Date: Mon Jul 20 19:07:06 2009
> New Revision: 76515
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76515&view=rev
> Log:
> Change the semantics for Entity.
>
> Entity can now refer to declarations that are not visible outside the translation unit.
> It is a wrapper of a pointer union, it's either a Decl* for declarations that don't
> "cross" translation units, or an EntityImpl* which is associated with the specific "visible" Decl.
>
> Included is a test case for handling fields across translation units.

Do you make sure to put only canonical decls into Entities?  It isn't
completely obvious from skimming the commit...

-Eli



More information about the cfe-commits mailing list