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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs