[LLVMbugs] [Bug 9926] New: libclang PCH creation depends on headers in the clang/2.9/include subdirectory
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 16 02:48:09 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9926
Summary: libclang PCH creation depends on headers in the
clang/2.9/include subdirectory
Product: clang
Version: 2.9
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pvaucher at infomaniak.ch
CC: llvmbugs at cs.uiuc.edu
Hello,
It seems that libclang *needs* to find headers in the clang/2.9/include
subdirectory for it to create the automagic PCH cache. If it doens't find those
headers, the cache isn't created and code completion is "slow" everytime (not
only the first time)
We ran some tests with the following code: https://gist.github.com/758615
Here are the results: http://ideone.com/xRXdw
At http://unitedsoft.ch/trace.7z you have a trace of with & without the
headers, we see that it touches & read those headers.
>From a quick digging in the source I couldn't really find what was going on, my
wild guess is that it reads those headers to check wether they're the clang
ones and when they're not it falls back in "safe" mode or smth.
Philippe
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list