sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land.
================ Comment at: lib/Lex/PPDirectives.cpp:1891 StringRef OriginalFilename = Filename; - if (!File) { - // A heuristic to correct a typo file name by removing leading and - // trailing non-isAlphanumeric characters. - auto CorrectTypoFilename = [](llvm::StringRef Filename) { - Filename = Filename.drop_until(isAlphanumeric); - while (!Filename.empty() && !isAlphanumeric(Filename.back())) { - Filename = Filename.drop_back(); + if (LangOpts.SpellChecking) { + if (!File) { ---------------- (just merge with existing if statement?) Repository: rC Clang https://reviews.llvm.org/D52778 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits