This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Add "did you mean?" suggestions to -cc1as
ClosedPublic

Authored by modocache on Jan 12 2018, 10:30 AM.

Details

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

Diff Detail

Repository
rL LLVM

Event Timeline

modocache created this revision.Jan 12 2018, 10:30 AM
This revision is now accepted and ready to land.Jan 12 2018, 10:53 AM
This revision was automatically updated to reflect the committed changes.