[PATCH] D39105: Patch bug 27628 (clang-tidy should exit with a failure code when there are errors)

Antoni via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 19 12:44:36 PDT 2017


antoyo created this revision.

Update clang-tidy to return 1 when there's an error.


https://reviews.llvm.org/D39105

Files:
  clang-tidy/tool/ClangTidyMain.cpp


Index: clang-tidy/tool/ClangTidyMain.cpp
===================================================================
--- clang-tidy/tool/ClangTidyMain.cpp
+++ clang-tidy/tool/ClangTidyMain.cpp
@@ -449,6 +449,10 @@
     return WErrorCount;
   }
 
+  if (FoundErrors) {
+      return 1;
+  }
+
   return 0;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39105.119609.patch
Type: text/x-patch
Size: 302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171019/a5b7889e/attachment.bin>


More information about the cfe-commits mailing list