[clang] [clang][driver] Support `-x` for all languages in CL mode (PR #89772)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 11:13:15 PDT 2024


================
@@ -5,7 +5,3 @@
 // RUN: %clang -fsyntax-only -xc %s -xc++ -fsyntax-only 2>&1 | FileCheck %s
 // RUN: %clang -fsyntax-only %s -xc %s -xc++ -fsyntax-only 2>&1 | FileCheck %s
 // CHECK: '-x c++' after last input file has no effect
-
-// RUN: not %clang_cl /WX /clang:-xc /clang:-E /clang:-dM -- %s 2>&1 | FileCheck --implicit-check-not="error:" -check-prefix=CL %s
----------------
MaskRay wrote:

Instead of removing the test, change the `CL` check lines to demonstrate the behavior difference.

https://github.com/llvm/llvm-project/pull/89772


More information about the cfe-commits mailing list