llvm/clang-tools-extra/clang-tidy/readability/MakeMemberFunctionConstCheck.cpp

//===--- MakeMemberFunctionConstCheck.cpp - clang-tidy --------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#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) {}

} // namespace clang::tidy::readability