For unclaimed target-agnostic options, we can apply clang_ignored_gcc_optimization_f_Group
to accept but warn about them.
% clang -c -fexpensive-optimizations a.c clang: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument]
For an unclaimed target-specific option, one target may want to accept but warn
about it. Add llvm::opt::Arg::IgnoredTargetSpecific to support this warning
need.
Technically, as this is a llvm level API, talking about clang specific behaviours here is a bit at the wrong level.