#include "QualifiedAutoCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/SmallVector.h"
#include <optional>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
namespace {
AST_MATCHER_P(QualType, hasUnqualifiedType,
ast_matchers::internal::Matcher<QualType>, InnerMatcher) { … }
enum class Qualifier { … };
std::optional<Token> findQualToken(const VarDecl *Decl, Qualifier Qual,
const MatchFinder::MatchResult &Result) { … }
std::optional<SourceRange>
getTypeSpecifierLocation(const VarDecl *Var,
const MatchFinder::MatchResult &Result) { … }
std::optional<SourceRange> mergeReplacementRange(SourceRange &TypeSpecifier,
const Token &ConstToken) { … }
bool isPointerConst(QualType QType) { … }
bool isAutoPointerConst(QualType QType) { … }
}
void QualifiedAutoCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void QualifiedAutoCheck::registerMatchers(MatchFinder *Finder) { … }
void QualifiedAutoCheck::check(const MatchFinder::MatchResult &Result) { … }
}