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

Konstantin Tokarev annulen at yandex.ru
Thu Nov 1 03:05:55 PDT 2012

01.11.2012, 13:55, "Journeyer J. Joh" <oosaprogrammer at gmail.com>:
> Hi list,
> I have a question about clang::TypeLocVisitor::Visit()
> This function is constructed with .def files.
> include/clang/AST/TypeLocNodes.def
> include/clang/AST/TypeNodes.def
> I wonder why this function is constructed with this uncommon .def file.

AFAIU, it was done to separate list of node types from logic to simplify
addition of new node types.

> I wonder if there exist any rule that programmer must know about this .def file.

It is just a plain header file #include'd into other.


More information about the cfe-dev mailing list