File tree 4 files changed +13
-7
lines changed
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
- param ($Prefix = " C:\clang-uml" , $BuildType = " Release" )
1
+ param ($Prefix = " C:\clang-uml-llvm17 " , $BuildType = " Release" )
2
2
3
3
cmake - S . - B $BuildType - DCMAKE_PREFIX_PATH= " $Prefix " - DENABLE_CXX_MODULES_TEST_CASES= OFF - Thost= x64
4
4
cmake -- build $BuildType -- config $BuildType
Original file line number Diff line number Diff line change 1
1
# This script assumes that all clang-uml dependencies are instaled in C:\clang-uml
2
2
3
- param ($Prefix = " C:\clang-uml" , $BuildType = " Release" )
3
+ param ($Prefix = " C:\clang-uml-llvm17 " , $BuildType = " Release" )
4
4
5
5
mkdir _BUILD
6
6
Original file line number Diff line number Diff line change @@ -253,12 +253,18 @@ std::vector<std::string> diagram::get_translation_units() const
253
253
LOG_DBG (" Looking for translation units in {}" , root_directory ().string ());
254
254
255
255
for (const auto &g : glob ()) {
256
- std::string glob_path =
257
- fmt::format (" {}/{}" , root_directory ().string (), g.c_str ());
256
+ std::filesystem::path absolute_glob_path{g};
258
257
259
- LOG_DBG (" Searching glob path {}" , glob_path);
258
+ #ifdef _MSC_VER
259
+ if (!absolute_glob_path.has_root_name ())
260
+ #else
261
+ if (!absolute_glob_path.is_absolute ())
262
+ #endif
263
+ absolute_glob_path = root_directory () / absolute_glob_path;
264
+
265
+ LOG_DBG (" Searching glob path {}" , absolute_glob_path.string ());
260
266
261
- auto matches = glob::glob (glob_path , true , false );
267
+ auto matches = glob::glob (absolute_glob_path. string () , true , false );
262
268
263
269
for (const auto &match : matches) {
264
270
const auto path =
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ diagrams:
2
2
t00025_class:
3
3
type: class
4
4
glob:
5
- - / t00025.cc
5
+ - t00025.cc
6
6
using_namespace: clanguml::t00025
7
7
include:
8
8
namespaces:
You can’t perform that action at this time.
0 commit comments