#include "UseRangesCheck.h"
#include "clang/AST/Decl.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <initializer_list>
namespace clang::tidy::modernize {
static constexpr const char *SingleRangeNames[] = …;
static constexpr const char *TwoRangeNames[] = …;
static constexpr const char *SinglePivotRangeNames[] = …;
namespace {
class StdReplacer : public utils::UseRangesCheck::Replacer { … };
class StdAlgorithmReplacer : public StdReplacer { … };
class StdNumericReplacer : public StdReplacer { … };
}
utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const { … }
UseRangesCheck::UseRangesCheck(StringRef Name, ClangTidyContext *Context)
: … { … }
void UseRangesCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
bool UseRangesCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const { … }
ArrayRef<std::pair<StringRef, StringRef>>
UseRangesCheck::getFreeBeginEndMethods() const { … }
std::optional<UseRangesCheck::ReverseIteratorDescriptor>
UseRangesCheck::getReverseDescriptor() const { … }
}