[clang] Add a -canonical-prefixes option
authorNico Weber <thakis@chromium.org>
Fri, 27 Aug 2021 14:14:27 +0000 (10:14 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 1 Sep 2021 18:51:06 +0000 (14:51 -0400)
commit3d157cfcc4ef2b4e09a36d3249c960d0a4099ca7
tree953a805fe306d113703bdb2243561beb548dd637
parent779d24e151ded2bd55096acb9c96c2d69bdf4eeb
[clang] Add a -canonical-prefixes option

In https://reviews.llvm.org/D47480 I complained that there's no positive
form of this flag, so let's add one :)

https://gcc.gnu.org/PR29931 also has a pending patch to add the positive
form to gcc (but there's admittedly not a lot of movement on that bug).

This doesn't change any defaults.

Differential Revision: https://reviews.llvm.org/D108818
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/test/Driver/no-canonical-prefixes.c
clang/tools/driver/driver.cpp