Skip to content

Commit 29a92bd

Browse files
authored
tool: Add is_like_clang_cl() getter (#1357)
1 parent 5e17879 commit 29a92bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tool.rs

+5
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ impl Tool {
421421
matches!(self.family, ToolFamily::Msvc { .. })
422422
}
423423

424+
/// Whether the tool is `clang-cl`-based MSVC-like.
425+
pub fn is_like_clang_cl(&self) -> bool {
426+
matches!(self.family, ToolFamily::Msvc { clang_cl: true })
427+
}
428+
424429
/// Supports using `--` delimiter to separate arguments and path to source files.
425430
pub(crate) fn supports_path_delimiter(&self) -> bool {
426431
matches!(

0 commit comments

Comments
 (0)