[PATCH] Refactor: Simplify boolean expression in modularize

David Blaikie dblaikie at gmail.com
Mon Mar 23 12:43:46 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8534

Files:
  clang-tools-extra/trunk/modularize/CoverageChecker.cpp

Index: clang-tools-extra/trunk/modularize/CoverageChecker.cpp
===================================================================
--- clang-tools-extra/trunk/modularize/CoverageChecker.cpp
+++ clang-tools-extra/trunk/modularize/CoverageChecker.cpp
@@ -288,7 +288,7 @@
   int HadErrors = Tool.run(new CoverageCheckerFrontendActionFactory(*this));
 
   // If we had errors, exit early.
-  return HadErrors ? false : true;
+  return !HadErrors;
 }
 
 // Called from CoverageCheckerCallbacks to track a header included

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8534.22503.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150323/06db289b/attachment.bin>


More information about the cfe-commits mailing list