libtooling fails to traverse TranslationUnitDecl

HI there:

My clang is 3.4.1 . I have a very simple libtooling code which just visit the functiondecl.

but function “bool VisitFunctionDecl(FunctionDecl *func)” is never called in line 35, who can answer me?

please see the following output, even i can output the AST in line 53.

sorry, i forget to attach my test.c file

At a first glance this looks like it should work.

Your code works in clang 3.5 after making the API changes.

Not sure why it does not in your version.
Maybe upgrade ?

yes, it is weird. ok, anyway i will try to upgrade. thank you!