aaron.ballman added inline comments.
================ Comment at: unittests/clang-tidy/ClangTidyTest.h:145 + + // Options. + if (Options.FormatStyle) { ---------------- Extraneous whitespace. ================ Comment at: unittests/clang-tidy/ClangTidyTest.h:147 + if (Options.FormatStyle) { + auto Style = format::getStyle(*Options.FormatStyle, + Filename.getSingleStringRef(), "LLVM"); ---------------- Please don't use `auto` unless the type is explicitly spelled out in the initialization. (Here and elsewhere in the patch.) ================ Comment at: unittests/clang-tidy/ClangTidyTest.h:159-160 + CleannedReplacements = std::move(FormattedReplacements); + if (!CleannedReplacements) + llvm_unreachable("!CleannedReplacements"); + } else { ---------------- This smells like it should be an assert rather than an unreachable. ================ Comment at: unittests/clang-tidy/ClangTidyTest.h:167 + if (!Result) { + // FIXME: propogate the error. + llvm::consumeError(Result.takeError()); ---------------- Are you intending to implement this fixme in this patch? https://reviews.llvm.org/D43500 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits