[cfe-dev] How can I read clang::TypeLocVisitor::Visit() ?

Journeyer J. Joh oosaprogrammer at gmail.com
Fri Nov 2 04:47:59 PDT 2012


Hello Bill White,

I received two images using your code. One is a hierarchy of ~~TypeLoc
classes. The other is a hierarchy of ~~Type classes.

But I cannot easily understand the meaning of those arrows. Could you
explain about the meaning of those arrows (the hierarchy)?

And I appreciate your sharing of good code to the public.

Sincerely
Journeyer

2012/11/1 Bill White <bill.white at griggsinst.com>:
> I've been thinking about this recently.  I think this github gist sheds some
> light on the hierarchy.
>
> git://gist.github.com/3994085.git
> https://gist.github.com/3994085
>
> The code here is not really C++ code.  However, if you preprocess it you get
> a graphviz
> graph which has the type hierarchy.  The gist has the details.
>
>
> On Thu, Nov 1, 2012 at 9:55 AM, Journeyer J. Joh <oosaprogrammer at gmail.com>
> wrote:
>>
>> The secret I found now is that debugging .def file can be helped by
>> viewing of intermediate file, which is '~~.ii'.
>>
>> These macro in .def files was a big wall for me to trace using gdb.
>> But now I found 'g++ -save-temps' of one of .h or .c very much helpful.
>>
>> Thank you very much!
>>
>> Sincerely
>> Journeyer
>>
>> 2012/11/1 Konstantin Tokarev <annulen at yandex.ru>:
>> >
>> >
>> > 01.11.2012, 17:04, "Journeyer J. Joh" <oosaprogrammer at gmail.com>:
>> >> Hi Konstantin Tokarev
>> >>
>> >> I understood.
>> >>
>> >> I doubted there be some secret I don't know.
>> >
>> > "Secret" is that .def files are usually included into several files with
>> > different definitions of macros used inside them.
>> >
>> > --
>> > Regards,
>> > Konstantin
>>
>>
>>
>> --
>> ----------------------------------------
>> Journeyer J. Joh
>> o o s a p r o g r a m m e r
>> a t
>> g m a i l  d o t  c o m
>> ----------------------------------------
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>



-- 
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l  d o t  c o m
----------------------------------------



More information about the cfe-dev mailing list