This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGd0b54bb50e51: [Clang] use unsigned integer constants in unit-test | fixes build error on… (authored by kiloalphaindia, committed by cor3ntin).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156224/new/ https://reviews.llvm.org/D156224 Files: clang/unittests/libclang/LibclangTest.cpp Index: clang/unittests/libclang/LibclangTest.cpp =================================================================== --- clang/unittests/libclang/LibclangTest.cpp +++ clang/unittests/libclang/LibclangTest.cpp @@ -1220,7 +1220,7 @@ const char *Args[] = {"-xc++", "-std=c++26"}; ClangTU = clang_parseTranslationUnit(Index, fileName.c_str(), Args, std::size(Args), nullptr, 0, TUFlags); - ASSERT_EQ(clang_getNumDiagnostics(ClangTU), 0); + ASSERT_EQ(clang_getNumDiagnostics(ClangTU), 0u); std::optional<CXCursor> staticAssertCsr; Traverse([&](CXCursor cursor, CXCursor parent) -> CXChildVisitResult { if (cursor.kind == CXCursor_StaticAssert) { @@ -1229,7 +1229,7 @@ return CXChildVisit_Continue; }); ASSERT_TRUE(staticAssertCsr.has_value()); - size_t argCnt = 0; + int argCnt = 0; Traverse(*staticAssertCsr, [&argCnt](CXCursor cursor, CXCursor parent) { switch (argCnt) { case 0:
Index: clang/unittests/libclang/LibclangTest.cpp =================================================================== --- clang/unittests/libclang/LibclangTest.cpp +++ clang/unittests/libclang/LibclangTest.cpp @@ -1220,7 +1220,7 @@ const char *Args[] = {"-xc++", "-std=c++26"}; ClangTU = clang_parseTranslationUnit(Index, fileName.c_str(), Args, std::size(Args), nullptr, 0, TUFlags); - ASSERT_EQ(clang_getNumDiagnostics(ClangTU), 0); + ASSERT_EQ(clang_getNumDiagnostics(ClangTU), 0u); std::optional<CXCursor> staticAssertCsr; Traverse([&](CXCursor cursor, CXCursor parent) -> CXChildVisitResult { if (cursor.kind == CXCursor_StaticAssert) { @@ -1229,7 +1229,7 @@ return CXChildVisit_Continue; }); ASSERT_TRUE(staticAssertCsr.has_value()); - size_t argCnt = 0; + int argCnt = 0; Traverse(*staticAssertCsr, [&argCnt](CXCursor cursor, CXCursor parent) { switch (argCnt) { case 0:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits