[PATCH] Refactor: Simplify boolean conditional return statements in modularize

Alexander Kornienko alexfh at google.com
Mon May 25 16:49:34 PDT 2015


================
Comment at: modularize/ModularizeUtilities.cpp:389
@@ -388,3 +388,3 @@
     return false;
   if (Extension.equals_lower(".h"))
     return true;
----------------
I'd replace lines 387-393 of the original with `return Extension.equals_lower(".h") || Extension.equals_lower(".inc");`.

http://reviews.llvm.org/D10027

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list