]> granicus.if.org Git - clang/commit
[Driver] Add "did you mean?" suggestions to -cc1as
authorBrian Gesiak <modocache@gmail.com>
Sat, 13 Jan 2018 17:09:11 +0000 (17:09 +0000)
committerBrian Gesiak <modocache@gmail.com>
Sat, 13 Jan 2018 17:09:11 +0000 (17:09 +0000)
commit22417a222587098fad331f0bdd7330f6325315eb
treedb8d0298be73f1d885753c7d518a70fa4a1def68
parent58416cde3f6f8ece48412d170621a80c71b68b05
[Driver] Add "did you mean?" suggestions to -cc1as

Summary:
In https://reviews.llvm.org/D41733, the driver was modified such that,
when a user provided a mispelled option such as `-hel`, it would
suggest a valid option with a nearby edit distance: "did you mean
'-help'?".

Add these suggestions to invocations of `clang -cc1as` as well.

Test Plan: `check-clang`

Reviewers: v.g.vassilev, bruno

Reviewed By: v.g.vassilev

Subscribers: cfe-commits

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

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