We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9871794 commit b5a36dbCopy full SHA for b5a36db
src/lib/Lib/MrDocsCompilationDatabase.cpp
@@ -359,7 +359,18 @@ adjustCommandLine(
359
new_cmdline.emplace_back(target);
360
}();
361
}
362
-
+
363
+ // ------------------------------------------------------
364
+ // Language standard
365
366
+ constexpr auto is_std_option = [](std::string_view opt) {
367
+ return opt.starts_with("-std=") || opt.starts_with("--std=") || opt.starts_with("/std:");
368
+ };
369
+ if (std::ranges::find_if(cmdline, is_std_option) == cmdline.end())
370
+ {
371
+ new_cmdline.emplace_back("-std=c++23");
372
+ }
373
374
// ------------------------------------------------------
375
// Add additional defines
376
0 commit comments