#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 = …;
class MacroExpansionsWithFileAndLine : public PPCallbacks { … };
AST_MATCHER(CXXMethodDecl, isInLambda) { … }
}
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) { … }
}