}
if (state.xarch_args.size() > 1) {
- if (state.xarch_args.find("host") != state.xarch_args.end()) {
+ if (state.xarch_args.contains("host")) {
LOG_RAW("-Xarch_host in combination with other -Xarch_* is too hard");
return tl::unexpected(Statistic::unsupported_compiler_option);
}
- if (state.xarch_args.find("device") != state.xarch_args.end()) {
+ if (state.xarch_args.contains("device")) {
LOG_RAW("-Xarch_device in combination with other -Xarch_* is too hard");
return tl::unexpected(Statistic::unsupported_compiler_option);
}
return {};
}
- if (ctx.included_files.find(path_str) != ctx.included_files.end()) {
+ if (ctx.included_files.contains(path_str)) {
// Already known include file.
return {};
}