[clang-tools-extra] r290745 - Fix another nondeterminism in a tidy test.

Gabor Horvath via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 30 01:20:13 PST 2016


Author: xazax
Date: Fri Dec 30 03:20:10 2016
New Revision: 290745

URL: http://llvm.org/viewvc/llvm-project?rev=290745&view=rev
Log:
Fix another nondeterminism in a tidy test.

Modified:
    clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-enum-usage-strict.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-enum-usage-strict.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-enum-usage-strict.cpp?rev=290745&r1=290744&r2=290745&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-enum-usage-strict.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-enum-usage-strict.cpp Fri Dec 30 03:20:10 2016
@@ -64,7 +64,7 @@ int trigger() {
   // CHECK-MESSAGES: :[[@LINE-2]]:9: warning: enum values are from different enum types
   if (P + Q == R)
     return 1;
-  else if ((Q | R) == T)
+  else if ((S | R) == T)
     return 1;
   else
     int k = ZZ | Z;




More information about the cfe-commits mailing list