diff --git a/utils/unittest/googlemock/include/gmock/gmock-actions.h b/utils/unittest/googlemock/include/gmock/gmock-actions.h index b3f654af348..8e17468a2cf 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-actions.h +++ b/utils/unittest/googlemock/include/gmock/gmock-actions.h @@ -33,6 +33,8 @@ // // This file implements some commonly used actions. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_ACTIONS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h b/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h index fc315f92ab5..b0da3bde8b9 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h +++ b/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h @@ -35,6 +35,8 @@ // cardinalities can be defined by the user implementing the // CardinalityInterface interface if necessary. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_CARDINALITIES_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h b/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h index b5a889c0c3a..ee00ad839d8 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h +++ b/utils/unittest/googlemock/include/gmock/gmock-generated-actions.h @@ -35,6 +35,8 @@ // // This file implements some commonly used variadic actions. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-generated-function-mockers.h b/utils/unittest/googlemock/include/gmock/gmock-generated-function-mockers.h index 4fa5ca94849..feec9857827 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-generated-function-mockers.h +++ b/utils/unittest/googlemock/include/gmock/gmock-generated-function-mockers.h @@ -37,6 +37,8 @@ // // This file implements function mockers of various arities. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_FUNCTION_MOCKERS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-generated-matchers.h b/utils/unittest/googlemock/include/gmock/gmock-generated-matchers.h index 57056fd91d2..d210fd90929 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-generated-matchers.h +++ b/utils/unittest/googlemock/include/gmock/gmock-generated-matchers.h @@ -35,6 +35,8 @@ // // This file implements some commonly used variadic matchers. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_MATCHERS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_MATCHERS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-generated-nice-strict.h b/utils/unittest/googlemock/include/gmock/gmock-generated-nice-strict.h index 4095f4d5bc7..9a5c15f60e4 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-generated-nice-strict.h +++ b/utils/unittest/googlemock/include/gmock/gmock-generated-nice-strict.h @@ -68,6 +68,8 @@ // cannot have arguments passed by non-const reference, which are // banned by the Google C++ style guide anyway. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-matchers.h b/utils/unittest/googlemock/include/gmock/gmock-matchers.h index 749a30e4e6d..ec8c237e254 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-matchers.h +++ b/utils/unittest/googlemock/include/gmock/gmock-matchers.h @@ -35,6 +35,8 @@ // matchers can be defined by the user implementing the // MatcherInterface interface if necessary. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_MATCHERS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_MATCHERS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-more-actions.h b/utils/unittest/googlemock/include/gmock/gmock-more-actions.h index 3d387b6b7d7..a3e463d91a7 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-more-actions.h +++ b/utils/unittest/googlemock/include/gmock/gmock-more-actions.h @@ -33,6 +33,8 @@ // // This file implements some actions that depend on gmock-generated-actions.h. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h b/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h index 3db899f4297..6a060f3d767 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h +++ b/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h @@ -36,6 +36,8 @@ // Note that tests are implemented in gmock-matchers_test.cc rather than // gmock-more-matchers-test.cc. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_GMOCK_MORE_MATCHERS_H_ #define GMOCK_GMOCK_MORE_MATCHERS_H_ diff --git a/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h b/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h index fed7de66bc4..cafd9434c4f 100644 --- a/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h +++ b/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h @@ -57,6 +57,8 @@ // where all clauses are optional, and .InSequence()/.After()/ // .WillOnce() can appear any number of times. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ #define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ diff --git a/utils/unittest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h b/utils/unittest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h index 7811e43f87c..ff69b7f9899 100644 --- a/utils/unittest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +++ b/utils/unittest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h @@ -38,6 +38,8 @@ // This file contains template meta-programming utility classes needed // for implementing Google Mock. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_ #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_ diff --git a/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h b/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h index e2ddb05c91d..657261749aa 100644 --- a/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -35,6 +35,8 @@ // Mock. They are subject to change without notice, so please DO NOT // USE THEM IN USER CODE. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_ #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_ diff --git a/utils/unittest/googlemock/include/gmock/internal/gmock-port.h b/utils/unittest/googlemock/include/gmock/internal/gmock-port.h index 63f4a6802e8..0a2935d414b 100644 --- a/utils/unittest/googlemock/include/gmock/internal/gmock-port.h +++ b/utils/unittest/googlemock/include/gmock/internal/gmock-port.h @@ -36,6 +36,8 @@ // end with _ are part of Google Mock's public API and can be used by // code outside Google Mock. +// IWYU pragma: private, include "gmock/gmock.h" + #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_