[PATCH] D142757: [clang][driver] Emit an error for `/clang:-x`

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 30 15:05:09 PST 2023


MaskRay added a comment.

> In CL mode values of /clang: arguments end up at the end of arguments list so passing /clang:-x doesn't make sense and produces confusing warning.

The description needs updating.  `clang:-x` emits an error instead of a warning. And if the error is suppressed, `/clang:-x` takes no effect.


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