[Lldb-commits] [lldb] r283652 - Fix compiler warnings in TestClangASTContext.cpp
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 7 21:03:19 PDT 2016
Author: labath
Date: Fri Oct 7 23:03:19 2016
New Revision: 283652
URL: http://llvm.org/viewvc/llvm-project?rev=283652&view=rev
Log:
Fix compiler warnings in TestClangASTContext.cpp
Modified:
lldb/trunk/unittests/Symbol/TestClangASTContext.cpp
Modified: lldb/trunk/unittests/Symbol/TestClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Symbol/TestClangASTContext.cpp?rev=283652&r1=283651&r2=283652&view=diff
==============================================================================
--- lldb/trunk/unittests/Symbol/TestClangASTContext.cpp (original)
+++ lldb/trunk/unittests/Symbol/TestClangASTContext.cpp Fri Oct 7 23:03:19 2016
@@ -163,7 +163,7 @@ TEST_F(TestClangASTContext, TestGetBasic
}
void VerifyEncodingAndBitSize(clang::ASTContext *context,
- lldb::Encoding encoding, int bit_size) {
+ lldb::Encoding encoding, unsigned int bit_size) {
CompilerType type = ClangASTContext::GetBuiltinTypeForEncodingAndBitSize(
context, encoding, bit_size);
EXPECT_TRUE(type.IsValid());
@@ -244,15 +244,15 @@ TEST_F(TestClangASTContext, TestRemoveFa
QualType qt;
qt = ClangUtil::GetQualType(record_type);
- EXPECT_EQ(0, qt.getLocalFastQualifiers());
+ EXPECT_EQ(0u, qt.getLocalFastQualifiers());
record_type = record_type.AddConstModifier();
record_type = record_type.AddVolatileModifier();
record_type = record_type.AddRestrictModifier();
qt = ClangUtil::GetQualType(record_type);
- EXPECT_NE(0, qt.getLocalFastQualifiers());
+ EXPECT_NE(0u, qt.getLocalFastQualifiers());
record_type = ClangUtil::RemoveFastQualifiers(record_type);
qt = ClangUtil::GetQualType(record_type);
- EXPECT_EQ(0, qt.getLocalFastQualifiers());
+ EXPECT_EQ(0u, qt.getLocalFastQualifiers());
}
TEST_F(TestClangASTContext, TestConvertAccessTypeToAccessSpecifier) {
@@ -350,7 +350,7 @@ TEST_F(TestClangASTContext, TestRecordHa
m_ast->GetAsCXXRecordDecl(empty_derived.GetOpaqueQualType());
RecordDecl *empty_derived_non_empty_base_decl =
ClangASTContext::GetAsRecordDecl(empty_derived);
- EXPECT_EQ(1, ClangASTContext::GetNumBaseClasses(
+ EXPECT_EQ(1u, ClangASTContext::GetNumBaseClasses(
empty_derived_non_empty_base_cxx_decl, false));
EXPECT_TRUE(
ClangASTContext::RecordHasFields(empty_derived_non_empty_base_decl));
@@ -371,7 +371,7 @@ TEST_F(TestClangASTContext, TestRecordHa
m_ast->GetAsCXXRecordDecl(empty_derived2.GetOpaqueQualType());
RecordDecl *empty_derived_non_empty_vbase_decl =
ClangASTContext::GetAsRecordDecl(empty_derived2);
- EXPECT_EQ(1, ClangASTContext::GetNumBaseClasses(
+ EXPECT_EQ(1u, ClangASTContext::GetNumBaseClasses(
empty_derived_non_empty_vbase_cxx_decl, false));
EXPECT_TRUE(
ClangASTContext::RecordHasFields(empty_derived_non_empty_vbase_decl));
More information about the lldb-commits
mailing list