[all-commits] [llvm/llvm-project] fe0821: [clang][driver] Emit an error for `/clang:-x`

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Thu Feb 2 08:54:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe082124faa8455cc9a68be5fdf10fc46a4d066c
      https://github.com/llvm/llvm-project/commit/fe082124faa8455cc9a68be5fdf10fc46a4d066c
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/x-args.c

  Log Message:
  -----------
  [clang][driver] Emit an error for `/clang:-x`

`/clang:-x` emits an error instead of a warning. And if the error is suppressed,
`/clang:-x` takes no effect.
Considering that `/clang:` is a recent addition in 2018-11 and there are MSVC
style alternatives, therefore `/clang:-x` doesn't seem useful and we just reject
it since properly supporting it would add lots of complexity.

Fixes #59307

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D142757




More information about the All-commits mailing list