]> granicus.if.org Git - clang/commit
[Driver] Suggest valid integrated tools
authorBrian Gesiak <modocache@gmail.com>
Mon, 15 Jan 2018 21:05:40 +0000 (21:05 +0000)
committerBrian Gesiak <modocache@gmail.com>
Mon, 15 Jan 2018 21:05:40 +0000 (21:05 +0000)
commit16360a5e793d6d0610293e5299f0ba0d81d32262
tree70c1b1e1802a0da0141df7fb80d2c8568f4ea0ed
parent10a329967d4f4287cca94417cf5ebabbcc9cc0c1
[Driver] Suggest valid integrated tools

Summary:
There are only two valid integrated Clang driver tools: `-cc1` and
`-cc1as`. If a user asks for an unknown tool, such as `-cc1asphalt`,
an error message is displayed to indicate that there is no such tool,
but the message doesn't indicate what the valid options are.

Include the valid options in the error message.

Test Plan: `check-clang`

Reviewers: sepavloff, bkramer, phosek

Reviewed By: bkramer

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D42004

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322517 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/unknown-arg.c
tools/driver/driver.cpp