[clang-tools-extra] r300324 - Silence -Wlogical-op-parentheses warning NFC

Nirav Dave via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 14 07:36:46 PDT 2017


Author: niravd
Date: Fri Apr 14 09:36:45 2017
New Revision: 300324

URL: http://llvm.org/viewvc/llvm-project?rev=300324&view=rev
Log:
Silence -Wlogical-op-parentheses warning NFC

Modified:
    clang-tools-extra/trunk/clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp?rev=300324&r1=300323&r2=300324&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp Fri Apr 14 09:36:45 2017
@@ -123,7 +123,7 @@ void ForwardingReferenceOverloadCheck::c
         (OtherCtor->isCopyConstructor() ? EnabledCopy : EnabledMove) = true;
     }
   }
-  bool Copy = !EnabledMove && !DisabledMove && !DisabledCopy || EnabledCopy;
+  bool Copy = (!EnabledMove && !DisabledMove && !DisabledCopy) || EnabledCopy;
   bool Move = !DisabledMove || EnabledMove;
   if (!Copy && !Move)
     return;




More information about the cfe-commits mailing list