#include "ConstReturnTypeCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"
#include <optional>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
static std::optional<Token>
findConstToRemove(const FunctionDecl *Def,
const MatchFinder::MatchResult &Result) { … }
namespace {
AST_MATCHER(QualType, isLocalConstQualified) { … }
struct CheckResult { … };
}
static CheckResult checkDef(const clang::FunctionDecl *Def,
const MatchFinder::MatchResult &MatchResult) { … }
void ConstReturnTypeCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void ConstReturnTypeCheck::registerMatchers(MatchFinder *Finder) { … }
void ConstReturnTypeCheck::check(const MatchFinder::MatchResult &Result) { … }
}