diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-09 17:35:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-09 17:35:33 +0000 |
commit | 8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18 (patch) | |
tree | 5f007f089fa69feb85859de65081edcc3a07b84d /clang/lib/Driver/Tools.cpp | |
parent | bd953d1805f92576e555ffdc276f18a47caa5f1b (diff) | |
download | bcm5719-llvm-8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18.tar.gz bcm5719-llvm-8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18.zip |
Introduce -f{no-}spell-checking options to enable/disable
spell-checking. By default, spell-checking is enabled for Clang
(obviously) but disabled in CIndex for performance reasons.
llvm-svn: 107992
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 296d5413705..9e03a18ae0e 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1401,6 +1401,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_show_source_location)) CmdArgs.push_back("-fno-show-source-location"); + if (!Args.hasFlag(options::OPT_fspell_checking, + options::OPT_fno_spell_checking)) + CmdArgs.push_back("-fno-spell-checking"); + if (Arg *A = Args.getLastArg(options::OPT_fshow_overloads_EQ)) A->render(Args, CmdArgs); |