[PATCH] D142757: [clang][driver] Emit an error for `/clang:-x`
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 31 09:39:24 PST 2023
MaskRay accepted this revision.
MaskRay added inline comments.
================
Comment at: clang/test/Driver/x-args.c:12
+// RUN: not %clang_cl /TC /WX /clang:-xc /clang:-E /clang:-dM %s 2>&1 | FileCheck -check-prefix=CL %s
+// CL-NOT: '-x c' after last input file has no effect
+// CL: error: unsupported option '-x c'; did you mean '/TC' or '/TP'?
----------------
You can remove this `CL-NOT` negative pattern. Instead, use `--check-prefix=CL --implicit-check-not=error:` to check that there is no other error.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142757/new/
https://reviews.llvm.org/D142757
More information about the cfe-commits
mailing list