Revert "[Driver] Remove Joined -X"
authorRoy Sundahl <rsundahl@apple.com>
Thu, 15 Dec 2022 19:31:44 +0000 (11:31 -0800)
committerRoy Sundahl <rsundahl@apple.com>
Fri, 16 Dec 2022 16:08:44 +0000 (08:08 -0800)
commit7f8bd8ac0658b5e75049fd5c04fcf8c31352f397
treef6408f3e667a166bb486c1160989d5f6ecf4bd7b
parent06e37c1853732b3811b44128679429a1e09f395a
Revert "[Driver] Remove Joined -X"

This change is breaking internal builds. We use the -Xfoo pattern but can
now no longer manage whether we allow an unused -Xfoo option to pass as a
warning or promote it to an error.

This reverts commit 98615fd376cea15af21e120e0e3ffa5ba68c2b6d.

Reviewed By: davide

Differential Revision: https://reviews.llvm.org/D139717
clang/include/clang/Driver/Options.td
clang/test/Misc/warn-not-error-Xfoo.c [new file with mode: 0644]