================
@@ -525,6 +525,19 @@ TEST(CommandMangler, RespectsOriginalSysroot) {
                 Not(HasSubstr(testPath("fake/sysroot"))));
   }
 }
+TEST(CommandMangler, ClangUnknownArgs) {
+  // Check that clang-cl-specific will drop unknown flags
+  const auto Mangler = CommandMangler::forTests();
+  {
+    tooling::CompileCommand Cmd;
+    Cmd.CommandLine = {"clang++", "-std=c++23", "--unknown-flag=abcd.flag"};
----------------
Decodetalkers wrote:

done

https://github.com/llvm/llvm-project/pull/200001
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to