[clang-tidy]: Google: new check 'google-upgrade-googletest-case'
authorEric Fiselier <eric@efcs.ca>
Mon, 29 Jul 2019 21:38:56 +0000 (21:38 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 29 Jul 2019 21:38:56 +0000 (21:38 +0000)
commita2a6f853662172a04bd3e2a444dd606d32b15bba
tree53a427e68b7b02ab74b6a822ec03988b776712ce
parent9a5fbc816341ccb92ddde90dfb16f411c1cff9c8
[clang-tidy]: Google: new check 'google-upgrade-googletest-case'

Introduce a new check to upgrade user code based on API changes in Googletest.

The check finds uses of old Googletest APIs with "case" in their name and replaces them with the new APIs named with "suite".

Patch by Alex Strelnikov (strel@google.com)
Reviewed as D62977.

llvm-svn: 367263
13 files changed:
clang-tools-extra/clang-tidy/google/CMakeLists.txt
clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp
clang-tools-extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/google/UpgradeGoogletestCaseCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/Inputs/gtest/gtest-typed-test.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/Inputs/gtest/gtest.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/Inputs/gtest/nosuite/gtest/gtest-typed-test.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/Inputs/gtest/nosuite/gtest/gtest.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/google-upgrade-googletest-case.cpp [new file with mode: 0644]
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/google/BUILD.gn