Fix a bunch of sign-compare warnings

llvm-svn: 267754
This commit is contained in:
David Blaikie 2016-04-27 18:47:45 +00:00
parent 41beee6575
commit 5593ce5633
1 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@ TEST_F(FindAllSymbolsTest, FunctionSymbols) {
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, FunctionSymbols) {
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, FunctionSymbols) {
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, DecayedTypeTest) {
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]);
}