test: add MSCV case of compiler toolchain test#351
test: add MSCV case of compiler toolchain test#351tsurumi-yizhou wants to merge 2 commits intoclice-io:mainfrom
Conversation
📝 WalkthroughWalkthroughAdds a full MSVC toolchain unit test and a Windows-specific CI step to set up the MSVC developer environment; the test runs only on CI Windows, queries cl.exe arguments for C++23/EH, compiles a temp file, and asserts zero diagnostics. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@tests/unit/Compiler/ToolchainTests.cpp`:
- Around line 80-112: The test MSVC currently uses only C++11-era code so
dropping "-std:c++23" could go unnoticed; update the remapped file passed to
params.add_remapped_file in the MSVC test to include a compile-time check that
requires C++23 (e.g. a preprocessor guard like `#if` __cplusplus < 202300L /
`#error` "C++23 required" / `#endif` or a static_assert that fails when the language
standard is older), so the test will fail if the -std:c++23 argument (in the
arguments vector passed to toolchain::query_toolchain and used in
params.arguments) is not propagated.
Summary by CodeRabbit
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.