clang-tools 22.0.0git
clang::tidy::utils::UseRangesCheck::Replacer Class Referenceabstract

#include <UseRangesCheck.h>

Inheritance diagram for clang::tidy::utils::UseRangesCheck::Replacer:
[legend]

Public Member Functions

virtual std::optional< std::string > getReplaceName (const NamedDecl &OriginalName) const =0
 Gets the name to replace a function with, return std::nullopt for a replacement where we just call a different overload.
virtual std::optional< std::string > getHeaderInclusion (const NamedDecl &OriginalName) const
 Gets the header needed to access the replaced function Return std::nullopt if no new header is needed.
virtual ArrayRef< SignaturegetReplacementSignatures () const =0
 Gets an array of all the possible overloads for a function with indexes where begin and end arguments are.
virtual ~Replacer ()=default

Detailed Description

Definition at line 44 of file utils/UseRangesCheck.h.

Constructor & Destructor Documentation

◆ ~Replacer()

virtual clang::tidy::utils::UseRangesCheck::Replacer::~Replacer ( )
virtualdefault

Member Function Documentation

◆ getHeaderInclusion()

std::optional< std::string > clang::tidy::utils::UseRangesCheck::Replacer::getHeaderInclusion ( const NamedDecl & OriginalName) const
virtual

Gets the header needed to access the replaced function Return std::nullopt if no new header is needed.

Definition at line 301 of file utils/UseRangesCheck.cpp.

Referenced by clang::tidy::utils::UseRangesCheck::check().

◆ getReplacementSignatures()

virtual ArrayRef< Signature > clang::tidy::utils::UseRangesCheck::Replacer::getReplacementSignatures ( ) const
pure virtual

Gets an array of all the possible overloads for a function with indexes where begin and end arguments are.

Referenced by clang::tidy::utils::UseRangesCheck::check(), and clang::tidy::utils::UseRangesCheck::registerMatchers().

◆ getReplaceName()

virtual std::optional< std::string > clang::tidy::utils::UseRangesCheck::Replacer::getReplaceName ( const NamedDecl & OriginalName) const
pure virtual

Gets the name to replace a function with, return std::nullopt for a replacement where we just call a different overload.

Referenced by clang::tidy::utils::UseRangesCheck::check().


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