Detect when func or FUNCTION is being used from within a lambda.
More...
#include <LambdaFunctionNameCheck.h>
Detect when func or FUNCTION is being used from within a lambda.
In that context, those expressions expand to the name of the call operator (i.e., operator()).
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/lambda-function-name.html
Definition at line 22 of file LambdaFunctionNameCheck.h.
◆ SourceRangeSet
◆ LambdaFunctionNameCheck()
clang::tidy::bugprone::LambdaFunctionNameCheck::LambdaFunctionNameCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
◆ check()
void clang::tidy::bugprone::LambdaFunctionNameCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ isLanguageVersionSupported()
bool clang::tidy::bugprone::LambdaFunctionNameCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
void clang::tidy::bugprone::LambdaFunctionNameCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
◆ registerPPCallbacks()
void clang::tidy::bugprone::LambdaFunctionNameCheck::registerPPCallbacks |
( |
const SourceManager & | SM, |
|
|
Preprocessor * | PP, |
|
|
Preprocessor * | ModuleExpanderPP ) |
|
override |
◆ storeOptions()
The documentation for this class was generated from the following files: