File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -384,9 +384,10 @@ adjustCommandLine(
384
384
isExplicitCCompileCommand || (!isExplicitCppCompileCommand && isImplicitCSourceFile);
385
385
386
386
constexpr auto is_std_option = [](std::string_view const opt) {
387
- return opt.starts_with (" -std=" ) || opt.starts_with (" --std=" ) || opt.starts_with (" /std:" ) || opt.starts_with (" -std:" );
387
+ return opt.starts_with (" -std=" ) || opt.starts_with (" --std=" ) ||
388
+ opt.starts_with (" /std:" ) || opt.starts_with (" -std:" );
388
389
};
389
- if (std::ranges::find_if (cmdline, is_std_option) == cmdline. end ( ))
390
+ if (std::ranges::none_of (cmdline, is_std_option))
390
391
{
391
392
if (!isCCompileCommand)
392
393
{
@@ -422,7 +423,7 @@ adjustCommandLine(
422
423
for (auto const & inc : it->second )
423
424
{
424
425
new_cmdline.emplace_back (std::format (" -isystem{}" , inc));
425
- }
426
+ }
426
427
}
427
428
}
428
429
You can’t perform that action at this time.
0 commit comments