We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ba27f commit c181b19Copy full SHA for c181b19
src/lib/MrDocsCompilationDatabase.cpp
@@ -403,8 +403,8 @@ adjustCommandLine(
403
isExplicitCCompileCommand || (!isExplicitCppCompileCommand && isImplicitCSourceFile);
404
405
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:");
+ return opt.starts_with("-std=") || opt.starts_with("--std=") || // clang options
+ opt.starts_with("/std:") || opt.starts_with("-std:"); // clang-cl options
408
};
409
if (std::ranges::none_of(cmdline, is_std_option))
410
{
0 commit comments