clang-tools 22.0.0git
clang::tidy::modernize::UseTransparentFunctorsCheck Class Reference

Prefer using transparent functors to non-transparent ones. More...

#include <UseTransparentFunctorsCheck.h>

Inheritance diagram for clang::tidy::modernize::UseTransparentFunctorsCheck:
[legend]

Public Member Functions

 UseTransparentFunctorsCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override

Detailed Description

Prefer using transparent functors to non-transparent ones.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-transparent-functors.html

Definition at line 20 of file UseTransparentFunctorsCheck.h.

Constructor & Destructor Documentation

◆ UseTransparentFunctorsCheck()

clang::tidy::modernize::UseTransparentFunctorsCheck::UseTransparentFunctorsCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 16 of file UseTransparentFunctorsCheck.cpp.

Member Function Documentation

◆ check()

void clang::tidy::modernize::UseTransparentFunctorsCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::modernize::UseTransparentFunctorsCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 23 of file UseTransparentFunctorsCheck.h.

◆ registerMatchers()

void clang::tidy::modernize::UseTransparentFunctorsCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 25 of file UseTransparentFunctorsCheck.cpp.

◆ storeOptions()

void clang::tidy::modernize::UseTransparentFunctorsCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 20 of file UseTransparentFunctorsCheck.cpp.


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