[clang] [clang-tools-extra] [clangd] Support clang-cl flags /std:c++23preview and /std:clatest (PR #178080)
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 05:26:55 PST 2026
================
@@ -535,13 +535,30 @@ TEST(CommandMangler, StdLatestFlag) {
EXPECT_THAT(llvm::join(Cmd.CommandLine, " "), HasSubstr("/std:c++latest"));
}
-TEST(CommandMangler, StdLatestFlag_Inference) {
+TEST(CommandMangler, ClangClStdFlags_Inference) {
const auto Mangler = CommandMangler::forTests();
- tooling::CompileCommand Cmd;
- Cmd.CommandLine = {"clang-cl", "/std:c++latest", "--", "/Users/foo.cc"};
- Mangler(Cmd, "/Users/foo.hpp");
- // Check that the /std:c++latest flag is not dropped during inference
----------------
nico wrote:
Done. Thanks!
https://github.com/llvm/llvm-project/pull/178080
More information about the cfe-commits
mailing list