<div dir="ltr"><div><div><div>Dear LLVMers,<br><br>I'm developing a tool to extract constraints from C programs. To do it, I<br>need, firstly, to be able to go over the Abstract Syntax Tree of a program.<br>Thus, I'm trying to use clang to get the AST of a program and start my <br>work from it. The problem that I'm having is that I don't know how I can <br>get the AST of a program without any intervention of the semantic analyzer. <br>I would like to analyze programs that have uses of undeclared variables. <br>However, once clang finds an undeclared variable, it stops building the tree, <br>and just shows me the errors. If I need to modify clang, to continue producing <br>the tree, e.g., assuming that every undeclared variable is extern, how can I do it?<br><br>Or,  in other words, is there a way to disable the semantic analysis<br>and get the AST of a program without any interference of the this analyzer?<br><br></div>Since now, thank you very much!<br><br></div>Regards,<br></div> Marcus<br></div>