diff options
author | Abseil Team <absl-team@google.com> | 2022-01-18 16:10:36 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-01-18 16:11:11 (GMT) |
commit | 100f6fbf5f81a82d163c1e29735e8a2936eacd4f (patch) | |
tree | ce5c271efbc05d6e968eb7fd712004dc685cfc43 /googletest/include/gtest/internal/gtest-port.h | |
parent | c9643a2e45ed0cb18b8409c62994be7c6e66dc1b (diff) | |
download | googletest-100f6fbf5f81a82d163c1e29735e8a2936eacd4f.zip googletest-100f6fbf5f81a82d163c1e29735e8a2936eacd4f.tar.gz googletest-100f6fbf5f81a82d163c1e29735e8a2936eacd4f.tar.bz2 |
Consistently apply IWYU pragmas across googletest and googlemock headers
PiperOrigin-RevId: 422559250
Change-Id: I9f630f2186724950e5e9fbd7093d5264e8bf0a71
Diffstat (limited to 'googletest/include/gtest/internal/gtest-port.h')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index e6ae256..945b6ec 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -26,7 +26,7 @@ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// + // Low-level types and utilities for porting Google Test to various // platforms. All macros ending with _ and symbols defined in an // internal namespace are subject to change without notice. Code @@ -38,6 +38,10 @@ // files are expected to #include this. Therefore, it cannot #include // any other Google Test header. +// IWYU pragma: private, include "gtest/gtest.h" +// IWYU pragma: friend gtest/.* +// IWYU pragma: friend gmock/.* + #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ |