<font face="'PrimaSans BT,Verdana,sans-serif'">Hello all,<br><br>I'm trying to get to the code inside a function body, <br>but clang doesn't print a part of the body for some reason.<br><br>here is the function I'm trying to get to:<br><br>    {<br>        FILE f;<br>        int* b1 = malloc(sizeof(int));<br>        return 0;<br>    }<br><br>and here is what clang prints out (the "malloc" in the second line is missing):<br><br>    {<br>        FILE f;<br>        int *b1;<br>        return 0;<br>    }<br><br><br>I'm currently using the ASTConsumer and DeclVisitor to print out the fucntion body.<br>I've attached 3 files to the mail:<br>    <br>    activation.cpp    -    this file which contains all the initilizations.<br>    GeneralConsumer.h - the class which inherits from ASTConsumer and DeclVisitor.<br>    test5.c           -    the test file containing the function.<br><br>I think the problem is in my configuration/initilizations, <br>    because when I change line 48 in the activation.cpp file <br>    from true to false: "headerSearchOpts->UseStandardIncludes = false;", <br><br>    I get the malloc, but now I don't get the "FILE f;" line in the fucntion body (This is the new output):<br>    <br>    {<br>        int *b1 = malloc(sizeof(int));<br>        return 0;<br>    }<br><br>Does anyone have any idea what I'm doing wrong?<br></font>‎