9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_LAMBDAFUNCTIONNAMECHECK_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_LAMBDAFUNCTIONNAMECHECK_H 12 #include "../ClangTidyCheck.h" 27 bool operator()(
const SourceRange &L,
const SourceRange &R)
const {
28 if (L.getBegin() == R.getBegin()) {
29 return L.getEnd() < R.getEnd();
31 return L.getBegin() < R.getBegin();
40 Preprocessor *ModuleExpanderPP)
override;
41 void check(
const ast_matchers::MatchFinder::MatchResult &
Result)
override;
51 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_LAMBDAFUNCTIONNAMECHECK_H Detect when func or FUNCTION is being used from within a lambda.
bool operator()(const SourceRange &L, const SourceRange &R) const
std::set< SourceRange, SourceRangeLessThan > SourceRangeSet
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
Override this to register PPCallbacks in the preprocessor.
Base class for all clang-tidy checks.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
static constexpr llvm::StringLiteral Name
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
LambdaFunctionNameCheck(StringRef Name, ClangTidyContext *Context)