It's quite useful to know which feature bits are on/off when trying to
figure out how to translate strings of clang
-march/-mfpu/-mcpu/... arguments to other compilers (e.g.,
rustc). This support doesn't seem to exist, but there's precedent for
having 'special' target strings that translate to printing to stderr.
This builds on that precedent.
I don't know how much testing *should* go into this, since it's
focused on LLVM development more than anything. It's notable that
this also breaks from existing precedent in this file -- namely, it doesn't
have a static bool that only lets us print things once. This enables
users to do things like:
"target-features" = "+foo,+dump-enabled,-bar,+dump-enabled"
So they can easily tell what effect -bar has on features enabled in
the backend.
clang-tidy: warning: invalid case style for function 'PrintFullFeatureList' [readability-identifier-naming]
not useful