<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello all,</p>
<p><br>
</p>
<p>For my project I have develop a resursive AST visitor which reates the AST from a give source files and its included header files and extracts some information from source code such as declared function names and types, declared variable types and names
and function calls. It takes a .cpp source file as input and parses the file and finds all the nescessary information I need to. </p>
<p><br>
</p>
<p>The thing is if a try to analyse a project such as LIBTIFF or FFMPEG, it gets me all sort of errors such as undeclared identifiers and missing header files. </p>
<p><br>
</p>
<p>Is there a way to execute this front-end tool without making it compile the code first? I assume the code is correclty syntaxed though. My front-end tool is called in tin this way:</p>
<p><br>
</p>
<p> </p>
<div>// parse the command-line args passed to your code</div>
<div> CommonOptionsParser op(argc, argv);</div>
<div><br>
</div>
<div> // create a new Clang Tool instance (a LibTooling environment)</div>
<div> ClangTool Tool(op.getCompilations(), op.getSourcePathList());</div>
<div><br>
</div>
<div> // run the Clang Tool, creating a new FrontendAction (explained below)</div>
<div> int result = Tool.run(newFrontendActionFactory<ExampleFrontendAction>());</div>
<div><br>
</div>
<div>Is there a way? Maybe a compiler argument or something??</div>
<p></p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>