[PATCH] [clang-tidy] Added -fix-errors option

Manuel Klimek klimek at google.com
Sun Nov 2 20:37:10 PST 2014


================
Comment at: clang-tidy/tool/ClangTidyMain.cpp:300-301
@@ +299,4 @@
+  const bool DisableFixes = Fix && FoundErrors && !FixErrors;
+  if (DisableFixes)
+    Fix = false;
+
----------------
Why don't we directly do llvm::errs() ...; here and skip the rest of the function (perhaps apart from the stat printing and profile checking)?

http://reviews.llvm.org/D6059






More information about the cfe-commits mailing list