[all-commits] [llvm/llvm-project] 76b855: [llvm] Add IWYU pragmas to GTest

Kirill Bobyrev via All-commits all-commits at lists.llvm.org
Wed Feb 9 02:06:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b855d845231c72887e40ea46aefdcde4fb34ba
      https://github.com/llvm/llvm-project/commit/76b855d845231c72887e40ea46aefdcde4fb34ba
  Author: Kirill Bobyrev <kbobyrev at google.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M llvm/utils/unittest/googlemock/README.LLVM
    M llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-cardinalities.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-function-mocker.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-matchers.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-more-actions.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-more-matchers.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-nice-strict.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock-spec-builders.h
    M llvm/utils/unittest/googlemock/include/gmock/gmock.h
    M llvm/utils/unittest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h
    M llvm/utils/unittest/googlemock/include/gmock/internal/custom/gmock-matchers.h
    M llvm/utils/unittest/googlemock/include/gmock/internal/custom/gmock-port.h
    M llvm/utils/unittest/googlemock/include/gmock/internal/gmock-internal-utils.h
    M llvm/utils/unittest/googlemock/include/gmock/internal/gmock-port.h
    M llvm/utils/unittest/googletest/README.LLVM
    M llvm/utils/unittest/googletest/include/gtest/gtest-death-test.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-matchers.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-message.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-param-test.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-printers.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-spi.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-test-part.h
    M llvm/utils/unittest/googletest/include/gtest/gtest-typed-test.h
    M llvm/utils/unittest/googletest/include/gtest/gtest.h
    M llvm/utils/unittest/googletest/include/gtest/gtest_pred_impl.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-filepath.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-internal.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-param-util.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-port-arch.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-port.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h
    M llvm/utils/unittest/googletest/include/gtest/internal/gtest-type-util.h

  Log Message:
  -----------
  [llvm] Add IWYU pragmas to GTest

This will allow using tools like Include-What-You-Use and clangd
IncludeCleaner. The tools will correctly identify the public headers
responsible for importing symbols in the testing code.

This is a backport of https://github.com/google/googletest/commit/100f6fbf5f81a82d163c1e29735e8a2936eacd4f

The only untouched file from that patch is
googletest/include/gtest/gtest_prod.h because the change is unrelated.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D119320




More information about the All-commits mailing list