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

//===--- ConvertMemberFunctionsToStatic.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 "ConvertMemberFunctionsToStatic.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"

usingnamespaceclang::ast_matchers;

namespace clang::tidy::readability {

AST_MATCHER(CXXMethodDecl, isStatic) {}

AST_MATCHER(CXXMethodDecl, hasTrivialBody) {}

AST_MATCHER(CXXMethodDecl, isOverloadedOperator) {}

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

AST_MATCHER(CXXMethodDecl, usesThis) {}

void ConvertMemberFunctionsToStatic::registerMatchers(MatchFinder *Finder) {}

/// Obtain the original source code text from a SourceRange.
static StringRef getStringFromRange(SourceManager &SourceMgr,
                                    const LangOptions &LangOpts,
                                    SourceRange Range) {}

static SourceRange getLocationOfConst(const TypeSourceInfo *TSI,
                                      SourceManager &SourceMgr,
                                      const LangOptions &LangOpts) {}

void ConvertMemberFunctionsToStatic::check(
    const MatchFinder::MatchResult &Result) {}

} // namespace clang::tidy::readability