In case user did not provide valid standard name for -std option,
available values (with short description) will be reported.
To test: clang -std=iso3103 -c source.c
Paths
| Differential D29724
[Driver] Report available language standards on user error ClosedPublic Authored by idlecode on Feb 8 2017, 11:21 AM.
Details
Diff Detail Event TimelineComment Actions Test case?
Comment Actions Indeed, thanks :)
This revision is now accepted and ready to land.Feb 11 2017, 12:10 PM
Revision Contents
Diff 88101 include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Frontend/LangStandard.h
include/clang/Frontend/LangStandards.def
lib/Frontend/CompilerInvocation.cpp
test/Driver/unknown-std.c
test/Driver/unknown-std.cl
test/Driver/unknown-std.cpp
|
Please remove this note and instead add "use " to the start of the next note. (That is more consistent with how we add notes to other diagnostics.)