clang-tools 20.0.0git
|
#include <UseRangesCheck.h>
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< Signature > | getReplacementSignatures () const =0 |
Gets an array of all the possible overloads for a function with indexes where begin and end arguments are. | |
virtual | ~Replacer ()=default |
Definition at line 44 of file utils/UseRangesCheck.h.
|
virtualdefault |
|
virtual |
Gets the header needed to access the replaced function Return std::nullopt if no new header is needed.
Definition at line 289 of file utils/UseRangesCheck.cpp.
Referenced by clang::tidy::utils::UseRangesCheck::check().
|
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().
|
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().