<div dir="ltr">Which version are you using? Did you try current trunk? We definitely had a bug there for a while...<br></div><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 6:30 AM <<a href="mailto:jiazhouyang09@sina.com">jiazhouyang09@sina.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:14px;line-height:23.239999771118164px">Hi Everyone,

<p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">I am using clang by libtooling, and meet something I can't figure out.</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">As for the given example clang-check, when running on all files in a source tree, clang-check frequently produces a fatal error - cannot open file...</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">But when I run those files one by one, clang-check perfectly works. By the way, there is a .json file in the top level of source tree.</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5"><br></p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">I also find that changing files order can influence the behavior of clang-check:</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5"><br></p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">*************************************************************************</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">$ clang-check /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c /home/jiazhouyang/httpd-2.4.10/os/unix/unixd.c
warning: argument unused during compilation: '-fsyntax-only'
</p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5"><br></p><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">*************************************************************************</p></pre><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5"></p><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">$ clang-check /home/jiazhouyang/httpd-2.4.10/os/unix/unixd.c /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c</p>In file included from event.c:79:
/home/jiazhouyang/httpd-2.4.10/include/ap_config.h:136:10: fatal error: cannot open file './os.h': No such file or directory
#include "os.h"
         ^
1 error generated.
Error while processing /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c.
warning: argument unused during compilation: '-fsyntax-only'
In file included from event.c:79:
/home/jiazhouyang/httpd-2.4.10/include/ap_config.h:136:10: fatal error: cannot open file './os.h': No such file or directory
#include "os.h"
         ^
1 error generated.
Error while processing /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c.<p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5"></p><pre style="margin-top:0px;margin-bottom:0px;padding:0px"><p style="margin-right:0px;margin-left:0px;padding:0px;line-height:1.5">*************************************************************************</p></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px">Any ideas what I am doing wrong?</pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px">-regards,
Zhouyang</pre></pre>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>