Skip to content

Commit

Permalink
issue #6946 Compilation error (clangparser.cpp)
Browse files Browse the repository at this point in the history
corrected clangparser conform other source code in respect to casting.
Corrected doxyapp and doxyparse make scripts for usage with clang parser.
  • Loading branch information
albert-github committed Apr 27, 2019
1 parent 97eac79 commit ffcae8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions addon/doxyapp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions addon/doxyparse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/clangparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ffcae8f

Please sign in to comment.