[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 lib/Index/IndexProvider.cpp lib/Index/Program.cpp lib/Index/ProgramImpl.h test/Index/find-refs.c test/Index/foo.h test/Index/t1.c test/Index/t2.c tools/index-test/index-test.cpp

Douglas Gregor dgregor at apple.com
Tue Jul 21 09:16:56 PDT 2009


On Jul 20, 2009, at 5:07 PM, Argiris Kirtzidis 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.

That seems reasonable. This will allow us to deal with static  
functions as well as fields, I assume.

> Included is a test case for handling fields across translation units.

Very nice!

	- Doug



More information about the cfe-commits mailing list