-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is company-clang--guess-pch-file trying to matching? #972
Comments
Good question. I don't have a good answer, and this code is 10 years old now. Maybe @nschum could remember, but probably not. Were you looking into support for precompiled headers? |
Judging by the commentary, though, the code is trying to distinguish between "precompiled headers" and "prefix files". |
No, I notice this when I read the code to figure out how company-clang works, the initial cause is that I find company-clang can't complete symbols from cairo.h.
I know "precompiled headers", but I don't know what's "prefix files", what the "prefix" stands for? I couldn't find the term on https://clang.llvm.org/docs/UsersManual.html, and
|
I don't really use Clang myself, so I don't have an answer to that unfortunately. Does the documented feature related to |
I'm not familiar with Clang too. I don't understand the documentation.
maybe "a prefix file" means a c header file? I have not used this command, however, since Clang does have the |
Maybe it does, maybe it doesn't. But the intention seems to be to looks for a file that the user probably generated manually, to speed up completion. There is some very similar logic in https://github.com/Golevka/emacs-clang-complete-async/blob/master/auto-complete-clang-async.el#L86, except in the end it uses Some time ago, Vim's clang_complete included using it as a possible optimization as well: xavierd/clang_complete@cecca90. But not the current version. |
Hello,
I got a question about the regexp pattern used in the following:
according to https://clang.llvm.org/docs/UsersManual.html#generating-a-pch-file, the pch file looks like
test.h.pch
, shouldn't the filename be matched? this pattern doesn't matchtest.h.pch
The text was updated successfully, but these errors were encountered: