-
Notifications
You must be signed in to change notification settings - Fork 99
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
Syntax checker parser fails when compile options contains "-include" #277
Comments
Just to be sure, does the file actually exist? Are you able to reproduce it with a minimal example? |
The file exists in the build directory. I didn't created a small example since it was occurring in the rtags source code, but I will try to create one and post here |
The small project is in this link as promissed, when running cmake + make, the files will be created inside cotire directory, and irony will start to fail to parse it https://www.dropbox.com/s/duko3u3gn75z9ed/test_irony.tar.bz2?dl=0 |
Ok, it seems the issue is not with I can get irony-mode to work if I generate the
But the compile commands for gcc don't work:
And I think it makes sense. The precompiled headers are often a compiler-specific internal representation of the code. So even if Clang is mostly compatible with GCC, it does not support GCC precompiled headers. I used the following command to know that:
|
Thanks, that really fix it, will close the issue since the origin of it is outside irony. |
Hello there,
When opening the rtags project on emacs, irony syntax checker will fail to parse it's compile options, resulting in the error:
Error from syntax checker irony: parsing failed
Any file will get the same error, but for this example I used the file ClangIndexer.cpp, the irony server will return this compile options from it:
The problem that makes the error occurs is this option:
If I remove it from my compile options the parser works just fine.
The text was updated successfully, but these errors were encountered: