Skip to content

Commit 2f75ea2

Browse files
committed
tweaks
1 parent 75aa4a2 commit 2f75ea2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/MrDocsCompilationDatabase.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,10 @@ adjustCommandLine(
384384
isExplicitCCompileCommand || (!isExplicitCppCompileCommand && isImplicitCSourceFile);
385385

386386
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:");
388389
};
389-
if (std::ranges::find_if(cmdline, is_std_option) == cmdline.end())
390+
if (std::ranges::none_of(cmdline, is_std_option))
390391
{
391392
if (!isCCompileCommand)
392393
{
@@ -422,7 +423,7 @@ adjustCommandLine(
422423
for (auto const& inc : it->second)
423424
{
424425
new_cmdline.emplace_back(std::format("-isystem{}", inc));
425-
}
426+
}
426427
}
427428
}
428429

0 commit comments

Comments
 (0)