summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2018-01-06 00:25:40 +0000
committerBrian Gesiak <modocache@gmail.com>2018-01-06 00:25:40 +0000
commit24910765e266a4344fa2993a2c5f3fdd9bfb19eb (patch)
treea034946598a9f85cfad2bdf4f20e80aaa997b2e0 /libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp
parent041740ff69b1a7d0393f511c52587274cc3abd0a (diff)
downloadbcm5719-llvm-24910765e266a4344fa2993a2c5f3fdd9bfb19eb.tar.gz
bcm5719-llvm-24910765e266a4344fa2993a2c5f3fdd9bfb19eb.zip
[Driver] Suggest correctly spelled driver options
Summary: Depends on https://reviews.llvm.org/D41732. Utilities such as `opt`, when invoked with arguments that are very nearly spelled correctly, suggest the correctly spelled options: ``` bin/opt -hel opt: Unknown command line argument '-hel'. Try: 'bin/opt -help' opt: Did you mean '-help'? ``` Clang, on the other hand, prior to this commit, does not: ``` bin/clang -hel clang-6.0: error: unknown argument: '-hel' ``` This commit makes use of the new libLLVMOption API from https://reviews.llvm.org/D41732 in order to provide correct suggestions: ``` bin/clang -hel clang-6.0: error: unknown argument: '-hel', did you mean '-help'? ``` Test Plan: `check-clang` Reviewers: yamaguchi, v.g.vassilev, teemperor, ruiu, bruno Reviewed By: bruno Subscribers: bruno, jroelofs, cfe-commits Differential Revision: https://reviews.llvm.org/D41733 llvm-svn: 321917
Diffstat (limited to 'libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud