-
Notifications
You must be signed in to change notification settings - Fork 10
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
c++11 files not parsed correctly? #2
Comments
Doesn't happen for me. :/ Can you check that the proper checker is used even if it looks like your code set it properly: I do not really recommend using You are on Mac OS X, I'm wondering if there is not some kind of issues with the standard library picked. What if you provide additional arguments such as |
My libclang came with xcode, and the problem was that it could not find c++ headers. Cmake found libclang headers in
because cmake does not seem to pick up that path with This is irritating, but not flycheck-irony's fault. If I invoke clang with
This is a related bug, I think: Sarcasm/irony-mode#138 What's interesting is that the completion code doesn't check for diagnostics, and just fails silently on errors like |
I think it would be better to copy the whole clang-related stuff from the /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ prefix and put it somewhere else. Then tell irony-mode Or you sure you wanted this compile options?
Wouldn't the following be better?
Maybe you would be better of using and "portable release": http://llvm.org/releases/download.html
This may be fixed in the future. I implemented completion before diagnostics, at this time I wasn't sure what to do with the completion diagnostics. Now that I have implemented diagnostics I will be able to use the one provided by code completion. This will require some changes in the way the requests are made to the irony-server, this is something I'm thinking about but I haven't get around yet. |
Little question regarding this question. How can I activate C++11? besides using the |
It depends, what do you want, just to have |
I would like overlay the compilation options. But it would be nice to know both anyway ;) |
For overlay, |
Thanks for the fast answer. Look, I'm actually put an example with one function |
Try: |
In the end it was apparently working but I did have some problem. Anyway, so, if I want to load it automatically for all my c files I add |
Yes it should be. |
thanks again ;) |
The problem is with Xcode-specific includes. Even Apple-own libclang.dylib doesn't know of them. Peek at what Apple compiler uses echo | clang -x c++ -v -E - 2>&1 | sed -n '/^#include </,/^End/s|^[^/]*\([^ ]*/include[^ ]*\).*$|-I\1|p' Add them to your .clang_complete:
|
In this file (with flycheck-irony installed from melpa in a sandboxed emacs version 25.0.50)
flycheck-irony says
no member named 'function'...
, which is wrong, because if I understand the documentation correctly it should be using-std=c++11
. (On the command lineclang -x c++
does not even need-std=c++11
.)Clang version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
The text was updated successfully, but these errors were encountered: