diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-04-27 19:13:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-27 19:13:14 (GMT) |
commit | 5c9718614b3edebfd5742917bea109f35f0fc99e (patch) | |
tree | 9bf63c7584e9db24670aa534985ed1872b09167d | |
parent | 16e2d86f8aaf9727bc6a490b28e6d4570c02f6ef (diff) | |
parent | ffcae8fe6e9b68add6b8d9b68b873bc4310743a2 (diff) | |
download | Doxygen-5c9718614b3edebfd5742917bea109f35f0fc99e.zip Doxygen-5c9718614b3edebfd5742917bea109f35f0fc99e.tar.gz Doxygen-5c9718614b3edebfd5742917bea109f35f0fc99e.tar.bz2 |
Merge pull request #6947 from albert-github/feature/issue_6946
issue #6946 Compilation error (clangparser.cpp)
-rw-r--r-- | addon/doxyapp/CMakeLists.txt | 5 | ||||
-rw-r--r-- | addon/doxyparse/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/clangparser.cpp | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt index 4fd1816..a737711 100644 --- a/addon/doxyapp/CMakeLists.txt +++ b/addon/doxyapp/CMakeLists.txt @@ -19,6 +19,11 @@ include_directories( add_executable(doxyapp doxyapp.cpp ) + +if (use_libclang) + set(CLANG_LIBS libclang clangTooling ${llvm_libs}) +endif() + target_link_libraries(doxyapp _doxygen qtools diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index 8e7536f..ff198fb 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -19,6 +19,11 @@ include_directories( add_executable(doxyparse doxyparse.cpp ) + +if (use_libclang) + set(CLANG_LIBS libclang clangTooling ${llvm_libs}) +endif() + target_link_libraries(doxyparse _doxygen qtools diff --git a/src/clangparser.cpp b/src/clangparser.cpp index f24ec0a..271b99f 100644 --- a/src/clangparser.cpp +++ b/src/clangparser.cpp @@ -782,7 +782,7 @@ void ClangParser::linkIdentifier(CodeOutputInterface &ol,FileDef *fd, g_currentMemberDef && d->definitionType()==Definition::TypeMember && (g_currentMemberDef!=d || g_currentLine<line)) // avoid self-reference { - addDocCrossReference(g_currentMemberDef,(MemberDef*)d); + addDocCrossReference(g_currentMemberDef,dynamic_cast<MemberDef *>(d)); } writeMultiLineCodeLink(ol,fd,line,column,d,text); } |