llvm/clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp

//===--- ConstCorrectnessCheck.cpp - clang-tidy -----------------*- C++ -*-===//
//
// 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 "ConstCorrectnessCheck.h"
#include "../utils/FixItHintUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"

usingnamespaceclang::ast_matchers;

namespace clang::tidy::misc {

namespace {
// FIXME: This matcher exists in some other code-review as well.
// It should probably move to ASTMatchers.
AST_MATCHER(VarDecl, isLocal) {}
AST_MATCHER_P(DeclStmt, containsAnyDeclaration,
              ast_matchers::internal::Matcher<Decl>, InnerMatcher) {}
AST_MATCHER(ReferenceType, isSpelledAsLValue) {}
AST_MATCHER(Type, isDependentType) {}
} // namespace

ConstCorrectnessCheck::ConstCorrectnessCheck(StringRef Name,
                                             ClangTidyContext *Context)
    :{}

void ConstCorrectnessCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {}

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

/// Classify for a variable in what the Const-Check is interested.
enum class VariableCategory {};

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

void ConstCorrectnessCheck::registerScope(const Stmt *LocalScope,
                                          ASTContext *Context) {}

} // namespace clang::tidy::misc