There's no way to make a flag alias to two flags, so add a /WCL4 flag that maps to the All, Extra diag groups.
Fixes PR25563.
Paths
| Differential D15350
[clang-cl] Let /W4 map to -Wall -Wextra instead of just -Wall. ClosedPublic Authored by thakis on Dec 8 2015, 2:02 PM.
Details
Summary There's no way to make a flag alias to two flags, so add a /WCL4 flag that maps to the All, Extra diag groups. Fixes PR25563.
Diff Detail Event Timelinehans edited edge metadata. Comment Actions
Well, at least not with the alias mechanism in the option parser, but David pointed out we could expand it manually in MSVCToolChain::TranslateArgs. Both alternatives are kind of annoying.. I especially don't like the idea of iterating over all the flags a bunch of time, so maybe this approach is better. lgtm. This revision is now accepted and ready to land.Dec 8 2015, 2:06 PM
Revision Contents
Diff 42218 docs/UsersManual.rst
include/clang/Basic/DiagnosticGroups.td
include/clang/Driver/CLCompatOptions.td
include/clang/Driver/Options.td
test/Driver/cl-options.c
|