[PATCH] D121683: Emit a warning if -xc/-xc++ is after the last input file

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 15 10:33:24 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/test/Driver/x-args.c:1
+// RUN: %clang -fsyntax-only -Werror -xc %s
+// RUN: %clang -fsyntax-only -Werror %s -xc %s
----------------
The first two RUN lines are unneeded


================
Comment at: clang/test/Driver/x-args.c:8
+// CHECK: ‘-x c++’ after last input file has no effect
\ No newline at end of file

----------------
No newline at end of file


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121683/new/

https://reviews.llvm.org/D121683



More information about the cfe-commits mailing list