clang-tools 22.0.0git
clang::tidy::google::UpgradeGoogletestCaseCheck Class Reference

Finds uses of deprecated Googletest APIs with names containing "case" and replaces them with equivalent names containing "suite". More...

#include <UpgradeGoogletestCaseCheck.h>

Inheritance diagram for clang::tidy::google::UpgradeGoogletestCaseCheck:
[legend]

Public Member Functions

 UpgradeGoogletestCaseCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Finds uses of deprecated Googletest APIs with names containing "case" and replaces them with equivalent names containing "suite".

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/google/upgrade-googletest-case.html

Definition at line 21 of file UpgradeGoogletestCaseCheck.h.

Constructor & Destructor Documentation

◆ UpgradeGoogletestCaseCheck()

clang::tidy::google::UpgradeGoogletestCaseCheck::UpgradeGoogletestCaseCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file UpgradeGoogletestCaseCheck.h.

Member Function Documentation

◆ check()

◆ isLanguageVersionSupported()

bool clang::tidy::google::UpgradeGoogletestCaseCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file UpgradeGoogletestCaseCheck.h.

◆ registerMatchers()

void clang::tidy::google::UpgradeGoogletestCaseCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 129 of file UpgradeGoogletestCaseCheck.cpp.

◆ registerPPCallbacks()

void clang::tidy::google::UpgradeGoogletestCaseCheck::registerPPCallbacks ( const SourceManager & SM,
Preprocessor * PP,
Preprocessor * ModuleExpanderPP )
override

Definition at line 122 of file UpgradeGoogletestCaseCheck.cpp.


The documentation for this class was generated from the following files: