ilya-biryukov added inline comments.

================
Comment at: lib/Sema/Sema.cpp:143
       ArgumentPackSubstitutionIndex(-1), CurrentInstantiationScope(nullptr),
-      DisableTypoCorrection(false), TyposCorrected(0), AnalysisWarnings(*this),
+      DisableTypoCorrection(
+          CodeCompleter ? CodeCompleter->disableTypoCorrection() : false),
----------------
It seems weird that typo-correction is only controlled by `CodeCompleter` for 
all of `Sema`.
I wonder whether putting that into `FrontendOptions` makes more sense. WDYT?


Repository:
  rC Clang

https://reviews.llvm.org/D42466



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to