Fixed generation of class_model_class diagram
This commit is contained in:
@@ -25,7 +25,8 @@ endif(MSVC)
|
|||||||
target_compile_features(clang-umllib INTERFACE cxx_std_17)
|
target_compile_features(clang-umllib INTERFACE cxx_std_17)
|
||||||
target_compile_options(clang-umllib PRIVATE
|
target_compile_options(clang-umllib PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:
|
||||||
-Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field>
|
-Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field
|
||||||
|
-Wno-deprecated-declarations>
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/MP /W1 /bigobj /wd4291 /wd4624 /wd4244>)
|
$<$<CXX_COMPILER_ID:MSVC>:/MP /W1 /bigobj /wd4291 /wd4624 /wd4244>)
|
||||||
target_compile_definitions(clang-umllib PRIVATE
|
target_compile_definitions(clang-umllib PRIVATE
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:
|
$<$<CXX_COMPILER_ID:MSVC>:
|
||||||
@@ -39,7 +40,8 @@ add_executable(clang-uml ${MAIN_SOURCE_FILE})
|
|||||||
target_compile_features(clang-uml PUBLIC cxx_std_17)
|
target_compile_features(clang-uml PUBLIC cxx_std_17)
|
||||||
target_compile_options(clang-uml PRIVATE
|
target_compile_options(clang-uml PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:
|
||||||
-Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field>
|
-Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field
|
||||||
|
-Wno-deprecated-declarations>
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/MP /W1 /bigobj /wd4291 /wd4624 /wd4244>)
|
$<$<CXX_COMPILER_ID:MSVC>:/MP /W1 /bigobj /wd4291 /wd4624 /wd4244>)
|
||||||
target_link_libraries(clang-uml
|
target_link_libraries(clang-uml
|
||||||
${YAML_CPP_LIBRARIES}
|
${YAML_CPP_LIBRARIES}
|
||||||
|
|||||||
@@ -897,8 +897,12 @@ void translation_unit_visitor::
|
|||||||
desugared_atsp = deduced_type->getDeducedType();
|
desugared_atsp = deduced_type->getDeducedType();
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto *deduced_record_type =
|
if (desugared_atsp.isNull())
|
||||||
desugared_atsp->getAs<clang::RecordType>();
|
return;
|
||||||
|
|
||||||
|
const auto *deduced_record_type = desugared_atsp->isRecordType()
|
||||||
|
? desugared_atsp->getAs<clang::RecordType>()
|
||||||
|
: nullptr;
|
||||||
|
|
||||||
if (deduced_record_type != nullptr) {
|
if (deduced_record_type != nullptr) {
|
||||||
if (auto *deduced_auto_decl =
|
if (auto *deduced_auto_decl =
|
||||||
|
|||||||
Reference in New Issue
Block a user