[clang-tools-extra] r267754 - Fix a bunch of sign-compare warnings

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 11:47:45 PDT 2016


Author: dblaikie
Date: Wed Apr 27 13:47:45 2016
New Revision: 267754

URL: http://llvm.org/viewvc/llvm-project?rev=267754&view=rev
Log:
Fix a bunch of sign-compare warnings

Modified:
    clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp

Modified: clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp?rev=267754&r1=267753&r2=267754&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp Wed Apr 27 13:47:45 2016
@@ -241,7 +241,7 @@ TEST_F(FindAllSymbolsTest, FunctionSymbo
     EXPECT_TRUE(hasSymbol(Symbol));
     getSymbolExtraInfo(Symbol);
     EXPECT_EQ("int", Symbol.FunctionInfos.getValue().ReturnType);
-    EXPECT_EQ(1, Symbol.FunctionInfos.getValue().ParameterTypes.size());
+    EXPECT_EQ(1u, Symbol.FunctionInfos.getValue().ParameterTypes.size());
     EXPECT_EQ("int", Symbol.FunctionInfos.getValue().ParameterTypes[0]);
   }
   {
@@ -250,7 +250,7 @@ TEST_F(FindAllSymbolsTest, FunctionSymbo
     EXPECT_TRUE(hasSymbol(Symbol));
     getSymbolExtraInfo(Symbol);
     EXPECT_EQ("int", Symbol.FunctionInfos.getValue().ReturnType);
-    EXPECT_EQ(1, Symbol.FunctionInfos.getValue().ParameterTypes.size());
+    EXPECT_EQ(1u, Symbol.FunctionInfos.getValue().ParameterTypes.size());
     EXPECT_EQ("const int &", Symbol.FunctionInfos.getValue().ParameterTypes[0]);
   }
   {
@@ -269,7 +269,7 @@ TEST_F(FindAllSymbolsTest, FunctionSymbo
     EXPECT_TRUE(hasSymbol(Symbol));
     getSymbolExtraInfo(Symbol);
     EXPECT_EQ("void", Symbol.FunctionInfos.getValue().ReturnType);
-    EXPECT_EQ(1, Symbol.FunctionInfos.getValue().ParameterTypes.size());
+    EXPECT_EQ(1u, Symbol.FunctionInfos.getValue().ParameterTypes.size());
     EXPECT_EQ("T", Symbol.FunctionInfos.getValue().ParameterTypes[0]);
   }
 }
@@ -323,7 +323,7 @@ TEST_F(FindAllSymbolsTest, DecayedTypeTe
   EXPECT_TRUE(hasSymbol(Symbol));
   getSymbolExtraInfo(Symbol);
   EXPECT_EQ("void", Symbol.FunctionInfos.getValue().ReturnType);
-  EXPECT_EQ(2, Symbol.FunctionInfos.getValue().ParameterTypes.size());
+  EXPECT_EQ(2u, Symbol.FunctionInfos.getValue().ParameterTypes.size());
   EXPECT_EQ("int *", Symbol.FunctionInfos.getValue().ParameterTypes[0]);
   EXPECT_EQ("int *", Symbol.FunctionInfos.getValue().ParameterTypes[1]);
 }




More information about the cfe-commits mailing list