[all-commits] [llvm/llvm-project] e22131: [Clang] Make Clang driver suggest '-Xclang' for CC...

Joseph Huber via All-commits all-commits at lists.llvm.org
Sat Sep 24 05:58:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2213159fa654a9ba8b211204a7342f6bc1690c6
      https://github.com/llvm/llvm-project/commit/e2213159fa654a9ba8b211204a7342f6bc1690c6
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-09-24 (Sat, 24 Sep 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/debug-options.c
    M clang/test/Driver/unknown-arg.c
    M clang/test/Misc/driver-verify.c

  Log Message:
  -----------
  [Clang] Make Clang driver suggest '-Xclang' for CC1 options passed to the driver

This patch adds an additional check for if an options passed to the
Clang driver could've been intended for the clang compiler. This is
primarily done for the times when a user attempts to pass an option like
`-ast-dump` to the driver instead.

Reviewed By: MaskRay, aaron.ballman

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




More information about the All-commits mailing list