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/Frontend/CompilerInvocation.cpp | |
parent | bd953d1805f92576e555ffdc276f18a47caa5f1b (diff) | |
download | llvm-8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18.zip llvm-8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18.tar.gz llvm-8ed0c0b99d09ccdcedfc04310d39a3a196d1ce18.tar.bz2 |
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/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 239283a..418d25b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1321,6 +1321,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.Static = Args.hasArg(OPT_static_define); Opts.DumpRecordLayouts = Args.hasArg(OPT_fdump_record_layouts); Opts.DumpVTableLayouts = Args.hasArg(OPT_fdump_vtable_layouts); + Opts.SpellChecking = !Args.hasArg(OPT_fno_spell_checking); Opts.NoBitFieldTypeAlign = Args.hasArg(OPT_fno_bitfield_type_align); Opts.OptimizeSize = 0; |