[gtest] Fix clang-tidy error in gtest (#23906)

* Nolinux gtest matchers

* Typo

* Update version database

* update port version

* Update version database
This commit is contained in:
Silvano Galliani 2022-04-05 19:57:13 +02:00 committed by GitHub
parent a7be23bf9f
commit 6f1028b184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/googletest/include/gtest/gtest-matchers.h b/googletest/include/gtest/gtest-matchers.h
index 2bd3dcf6..12cd60f6 100644
--- a/googletest/include/gtest/gtest-matchers.h
+++ b/googletest/include/gtest/gtest-matchers.h
@@ -403,6 +403,7 @@ class MatcherBase : private MatcherDescriberInterface {
};
void Destroy() {
+ // NOLINTNEXTLINE
if (IsShared() && buffer_.shared->Unref()) {
vtable_->shared_destroy(buffer_.shared);
}

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
SHA512 6fcc7827e4c4d95e3ae643dd65e6c4fc0e3d04e1778b84f6e06e390410fe3d18026c131d828d949d2f20dde6327d30ecee24dcd3ef919e21c91e010d149f3a28
HEAD_REF main
PATCHES
clang-tidy-no-lint.patch
fix-main-lib-path.patch
remove-werror.patch
)

View File

@ -1,7 +1,7 @@
{
"name": "gtest",
"version-semver": "1.11.0",
"port-version": 4,
"port-version": 5,
"description": "GoogleTest and GoogleMock testing frameworks",
"homepage": "https://github.com/google/googletest",
"license": "BSD-3-Clause",

View File

@ -2650,7 +2650,7 @@
},
"gtest": {
"baseline": "1.11.0",
"port-version": 4
"port-version": 5
},
"gtk": {
"baseline": "4.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9731f44f8b0ecbc67eafccd0440700357d2cdfc4",
"version-semver": "1.11.0",
"port-version": 5
},
{
"git-tree": "9b9432e429e940c2d86eeef6fcf03bc74418c4c5",
"version-semver": "1.11.0",