#include "MakeMemberFunctionConstCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ParentMapContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
AST_MATCHER(CXXMethodDecl, isStatic) { … }
AST_MATCHER(CXXMethodDecl, hasTrivialBody) { … }
AST_MATCHER(CXXRecordDecl, hasAnyDependentBases) { … }
AST_MATCHER(CXXMethodDecl, isTemplate) { … }
AST_MATCHER(CXXMethodDecl, isDependentContext) { … }
AST_MATCHER(CXXMethodDecl, isInsideMacroDefinition) { … }
AST_MATCHER_P(CXXMethodDecl, hasCanonicalDecl,
ast_matchers::internal::Matcher<CXXMethodDecl>, InnerMatcher) { … }
enum UsageKind { … };
class FindUsageOfThis : public RecursiveASTVisitor<FindUsageOfThis> { … };
AST_MATCHER(CXXMethodDecl, usesThisAsConst) { … }
void MakeMemberFunctionConstCheck::registerMatchers(MatchFinder *Finder) { … }
static SourceLocation getConstInsertionPoint(const CXXMethodDecl *M) { … }
void MakeMemberFunctionConstCheck::check(
const MatchFinder::MatchResult &Result) { … }
}