[all-commits] [llvm/llvm-project] 1c1a4b: [clang][driver] Emit a warning if -xc/-xc++ is aft...

Yi Kong via All-commits all-commits at lists.llvm.org
Tue Mar 15 10:08:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c1a4b9556db8579f7428605ac2c351bddde9ad5
      https://github.com/llvm/llvm-project/commit/1c1a4b9556db8579f7428605ac2c351bddde9ad5
  Author: Yi Kong <yikong at google.com>
  Date:   2022-03-16 (Wed, 16 Mar 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Driver/Driver.cpp
    A clang/test/Driver/x-args.c

  Log Message:
  -----------
  [clang][driver] Emit a warning if -xc/-xc++ is after the last input file

This follows the same warning GCC produces.

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




More information about the All-commits mailing list