Skip to content

Commit

Permalink
chore: remove some warnings on msvc #108
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Sep 21, 2024
1 parent 1a6c689 commit 614d537
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ecsact/cli/detail/glob.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ auto path_matches_glob(
const std::filesystem::path& glob_pattern
) -> bool;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcomment"
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wcomment"
#endif
/**
* Gets the path before the first glob pattern. For example if your glob pattern
* is `a/b/*` the returning path would be `a/b`. Or if you have multiple glob
* patterns such as `a/b/*.txt/c/*.d` the returning path would still be `a/b`.
*/
auto path_before_glob(std::filesystem::path) -> std::filesystem::path;
#pragma clang diagnostic pop
#ifdef __clang__
# pragma clang diagnostic pop
#endif

// not really a glob feature, but useful path util
auto path_strip_prefix(
Expand Down

0 comments on commit 614d537

Please sign in to comment.