Fixed building and tests on macos

This commit is contained in:
Bartek Kryza
2022-08-30 21:23:56 +02:00
parent f1c0361c46
commit 0cef28ac02
7 changed files with 29 additions and 6 deletions

View File

@@ -7,6 +7,10 @@ set(CMAKE_CXX_STANDARD 17)
set(TEST_DISABLE_WARNINGS "-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-variable -Wno-attributes")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCLANG_CXXFLAGS} ${TEST_DISABLE_WARNINGS}")
if(APPLE)
# Without this, clang-uml test cases fail with error saying that clang cannot find stdarg.h
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${LLVM_LIBRARY_DIR}/clang/${LLVM_PACKAGE_VERSION}/include")
endif(APPLE)
file(GLOB_RECURSE TEST_CASE_SOURCES t*/*.cc)
file(GLOB_RECURSE TEST_CASE_CONFIGS t*/.clang-uml)

View File

@@ -16,4 +16,7 @@ diagrams:
- clanguml::t00039::E
- clanguml::t00039::ns3::F<T>
relationships:
- inheritance
- inheritance
exclude:
namespaces:
- std

View File

@@ -16,4 +16,6 @@ diagrams:
- instantiation
exclude:
specializations:
- clanguml::t00042::C<T>
- clanguml::t00042::C<T>
namespaces:
- std

View File

@@ -48,7 +48,6 @@ TEST_CASE("t00048", "[test-case][class]")
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("A")));
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("B")));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}