[PATCH] D116503: [clang] Add --start-no-unused-arguments/--end-no-unused-arguments to silence some unused argument warnings

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 5 11:38:55 PST 2022


MaskRay added inline comments.


================
Comment at: clang/test/Driver/diagnostics.c:34
+// there's no diagnostic.
+// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
+// RUN:   --start-no-unused-arguments -lfoo --end-no-unused-arguments \
----------------
You may change some `x86_64-apple-darwin10` to other triples, probably including `clang-cl` (to test `CoreOption`).

The canonical spelling for `-target ` is `---target=`. `-target ` (space separated driver option) is just abused so much that it is unrealistic to remove support now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116503



More information about the cfe-commits mailing list