llvm/clang-tools-extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp

//===--- LambdaFunctionNameCheck.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 "LambdaFunctionNameCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/MacroInfo.h"
#include "clang/Lex/Preprocessor.h"

usingnamespaceclang::ast_matchers;

namespace clang::tidy::bugprone {

namespace {

static constexpr bool DefaultIgnoreMacros =;

// Keep track of macro expansions that contain both __FILE__ and __LINE__. If
// such a macro also uses __func__ or __FUNCTION__, we don't want to issue a
// warning because __FILE__ and __LINE__ may be useful even if __func__ or
// __FUNCTION__ is not, especially if the macro could be used in the context of
// either a function body or a lambda body.
class MacroExpansionsWithFileAndLine : public PPCallbacks {};

AST_MATCHER(CXXMethodDecl, isInLambda) {}

} // namespace

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

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

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

void LambdaFunctionNameCheck::registerPPCallbacks(
    const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) {}

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

} // namespace clang::tidy::bugprone