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>
<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">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>