<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all, </p>
<p><br>
</p>
<p>As Miklos pointed out I am using Bear to create a compilation database to analyze my source code. This lead to much better results. </p>
<p>Although I still have some problems. Does anyone knows why this happens? </p>
<p><br>
</p>
<p>When I am executing using the compilation database I get this error on certain files:</p>
<p></p>
<div>Executing ASTvisitor ../ffmpeg-0.6/libavcodec/libxvid_rc.c</div>
<div>Skipping /home/andreas/Desktop/test_analysis/../ffmpeg-0.6/libavcodec/libxvid_rc.c. Command line not found.</div>
<div><br>
</div>
<div>And does  not extract anything from the file. </div>
<div><br>
</div>
<div>When am executing myAST visitor with the exact same file but without the compilation database it gives me the error:</div>
<div>
<div> 'xvid.h' file not found</div>
<div><br>
</div>
</div>
<div>but it analyses the file and the results are mostly correct. The visitor skips enything which has to do with variable declarations of the xvid.h header. </div>
<div>"How can the command line not found" error can be fixed?</div>
<div><br>
</div>
<div>Thank you all.</div>
<br>
<p></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Miklos Vajna <vmiklos@vmiklos.hu><br>
<b>Sent:</b> 12 July 2016 20:06:46<br>
<b>To:</b> David Blaikie<br>
<b>Cc:</b> Georgiou, Andreas; cfe-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [cfe-dev] How to execute clang front-end AST visitor to exract some information from source code without compiling the source code first</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
On Tue, Jul 12, 2016 at 08:34:54AM -0700, David Blaikie via cfe-dev <cfe-dev@lists.llvm.org> wrote:<br>
> (probably the most generic thing someone could build to help here would be<br>
> a scan-build like build-interposition tool to make a compilation database<br>
> from any project/build system. Not the most efficient, but would be handy<br>
> as a fallback)<br>
<br>
This is exactly what <<a href="https://github.com/rizsotto/Bear">https://github.com/rizsotto/Bear</a>> implements.<br>
<br>
Regards,<br>
<br>
Miklos<br>
</div>
</span></font>
</body>
</html>