Awesome, thanks!<br><br><div>On Mon Jun 23 2014 at 12:46:29 PM, Ben Langmuir <<a href="mailto:blangmuir@apple.com">blangmuir@apple.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hey Dan,<div><br></div><div>Should be fixed in r211504.  I’ll try to get your test case added to the regression tests when I have some time.</div><div><br></div><div>Thanks for the detailed report,</div>
<div><br></div><div>Ben</div></div><div style="word-wrap:break-word"><div><br><div><blockquote type="cite"><div>On Jun 20, 2014, at 5:55 PM, Ben Langmuir <<a href="mailto:blangmuir@apple.com" target="_blank">blangmuir@apple.com</a>> wrote:</div>
<br><div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jun 20, 2014, at 4:39 PM, Dan Schmidt <<a href="mailto:dcschmid@gmail.com" target="_blank">dcschmid@gmail.com</a>> wrote:</div><br>
<div>FYI, I've determined that the issue was introduced in r206309. I haven't looked into it any further than that at this point, but thought I'd give an update in case anyone else was able to look into it.<br>
</div></blockquote><div><br></div>Thanks for bisecting!  This is probably something to do with the changes I made to how FileManagers are shared among the ASTUnit bits.  I’ll take a look.</div><div><br></div><div>Ben<br><blockquote type="cite">
<div>
<br></div><div>-ds</div><br><div>On Thu Jun 19 2014 at 7:18:12 AM, Dan Schmidt <<a href="mailto:dcschmid@gmail.com" target="_blank">dcschmid@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

ping<br><br><div>Has anyone else seen similar errors? Is this a bug in libclang?</div><br><div>On Tue Jun 17 2014 at 10:48:04 AM, Manuel Klimek <<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">+argyrios<div class="gmail_extra"><br><div class="gmail_quote"></div></div></div><div dir="ltr"><div class="gmail_extra">

<div class="gmail_quote">On Mon, Jun 16, 2014 at 2:07 PM, Dan Schmidt <span dir="ltr"><<a href="mailto:dcschmid@gmail.com" target="_blank">dcschmid@gmail.com</a>></span> wrote:<br>
</div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hello clang devs,<div><br></div><div>

I use YouCompleteMe as a semantic completion engine for vim, which in turn uses libclang to provide completions. By default, YCM uses the 3.4 version of libclang, and all works well. However, I recently updated it to use the head version and now I'm seeing errors like that listed in the subject. I've been able to create a minimal reproduction - see the attached files.</div>



<div><br></div><div>To execute run commands similar to the following:</div><div><ul><li>tar xvf clang_parse.tar.gz<br></li><li>cd clang_parse<br></li><li>mkdir obj<br></li><li>cd obj<br></li><li>cmake -D CMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -D PATH_TO_LLVM_ROOT=<path to llvm head install dir - should have include and lib under here> ../src/<br>



</li><li>make<br></li><li>./parse_tu<br></li></ul><div>The basic test case is this:</div></div><div><ul><li>Write the small cpp and h files to disk.</li><li>Parse the translation unit - observe that the syntax error is reported</li>



<li>Immediately reparse the TU.</li><li>Update the header in memory and reparse - observe that the syntax error is gone.</li><li>Save the header to disk and reparse. Observe the "file '/tmp/header_file.h' has been modified since the precompiled header '/some/path/preamble-eb3c0c.<u></u>pch' was built" error.</li>



</ul><div>Am I using these methods incorrectly, or is there a bug in clang? If I'm using them incorrectly, what is the correct way to reparse a translation unit that has changed?</div></div><div><br></div><div>Thanks,</div>



<div>Dan</div><div><br></div><div><br></div>
<br></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">______________________________<u></u>_________________<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/<u></u>mailman/listinfo/cfe-dev</a><br>
<br></div></div></div></blockquote><br>
</blockquote></blockquote>
_______________________________________________<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><br></div></div></blockquote></div><br></div></div></blockquote>