aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-05-01 16:45:15 +0000
committerNico Weber <nicolasweber@gmx.de>2019-05-01 16:45:15 +0000
commitc991daa5320d57bb7b0b53dee0cd5bd97aaa60a6 (patch)
treeeb02a9a9dc38ae8443b8ce53af74a188fd366f38 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentc29d4915963251cbea47ec36a5cdaaf806944c59 (diff)
downloadllvm-c991daa5320d57bb7b0b53dee0cd5bd97aaa60a6.zip
llvm-c991daa5320d57bb7b0b53dee0cd5bd97aaa60a6.tar.gz
llvm-c991daa5320d57bb7b0b53dee0cd5bd97aaa60a6.tar.bz2
Option spell checking: Penalize delimiter flags if input has no argument
If the user passes a flag like `-version` to a program, it's more likely they mean `--version` than `-version:`, since there's no parameter passed. Hence, give delimited arguments a penalty of 1 if the user input doesn't contain the delimiter or no data after it. The motivation is that with this, lld-link can suggest "--version" instead of "-version:" for "-version" and "-nodefaultlib" instead of "-nodefaultlib:" for "-nodefaultlibs". Differential Revision: https://reviews.llvm.org/D61382 llvm-svn: 359701
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions