Skip to content

Commit c181b19

Browse files
committed
comment
1 parent d4ba27f commit c181b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/MrDocsCompilationDatabase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ adjustCommandLine(
403403
isExplicitCCompileCommand || (!isExplicitCppCompileCommand && isImplicitCSourceFile);
404404

405405
constexpr auto is_std_option = [](std::string_view const opt) {
406-
return opt.starts_with("-std=") || opt.starts_with("--std=") ||
407-
opt.starts_with("/std:") || opt.starts_with("-std:");
406+
return opt.starts_with("-std=") || opt.starts_with("--std=") || // clang options
407+
opt.starts_with("/std:") || opt.starts_with("-std:"); // clang-cl options
408408
};
409409
if (std::ranges::none_of(cmdline, is_std_option))
410410
{

0 commit comments

Comments
 (0)