Added support for external system headers

This commit is contained in:
Bartek Kryza
2022-04-25 00:18:13 +02:00
parent 6e78e87bb0
commit bd0bb4455f
8 changed files with 33 additions and 0 deletions

View File

@@ -40,9 +40,14 @@ TEST_CASE("t40001", "[test-case][package]")
REQUIRE_THAT(puml, IsFile("t40001.cc"));
REQUIRE_THAT(puml, IsFile("t40001_include1.h"));
REQUIRE_THAT(puml, IsFile("string"));
REQUIRE_THAT(puml, IsFile("cppast/cpp_preprocessor.hpp"));
REQUIRE_THAT(puml, IsAssociation(_A("t40001.cc"), _A("t40001_include1.h")));
REQUIRE_THAT(puml, IsAssociation(_A("t40001_include1.h"), _A("lib1.h")));
REQUIRE_THAT(puml, IsDependency(_A("t40001_include1.h"), _A("string")));
save_puml(
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
}