-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Compilation error (clangparser.cpp) #6946
Comments
I'm not really sure of what I have done but I added a dynamic_cast and compilation ended. I hope not to have a nullptr soon :) Edit: I have this error (just typing doxygen)
|
I think this looks like a correct patch when it is something like: Regarding the LLVM ERROR, I think best is to create a separate issue for it (does not have anything to do with the compilation error) also specifying which compiler you are using and the version of clang you are using. |
I meant dynamic_cast can return nullptr is there is no relation of inheritance between classes. Because I don't know the code I hope it's ok.
You are right that may not be related with this compilation error (but appearing with -Duse_libclang:BOOL=ON). I linked cmake with clang-6, I think doxygen was compiled with g++-6 |
corrected clangparser conform other source code in respect to casting. Corrected doxyapp and doxyparse make scripts for usage with clang parser.
I've just pushed a proposed patch, pull request #6947, based on change proposed in the the comment. |
issue #6946 Compilation error (clangparser.cpp)
Code has been integrated in master on github (please don't close the issue as this will be done at the moment of a release). |
@Lecrapouille the problem with the LLVM_ERROR might be related with #6379 |
@albert-github ! Thanks I'll try within this week. I'll give you a feedback. |
@albert-github Finally testing was faster than I was expecting. Removing |
This issue was previously marked 'fixed but not released', |
SHA1 2c72e1c
Debian 9.8 amd64 with installed llvm-6 and clang-6 (from apt-get).
Got this error:
Note 01: I added
-Duse_libclang:BOOL=ON
to try to fix the warning:Note 02: without this option, compilation worked fine.
The text was updated successfully, but these errors were encountered: