|
clang-tools 22.0.0git
|
Detect when func or FUNCTION is being used from within a lambda. More...
#include <LambdaFunctionNameCheck.h>
Public Member Functions | |
| LambdaFunctionNameCheck (StringRef Name, ClangTidyContext *Context) | |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
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.
| clang::tidy::bugprone::LambdaFunctionNameCheck::LambdaFunctionNameCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 61 of file LambdaFunctionNameCheck.cpp.
|
override |
Definition at line 86 of file LambdaFunctionNameCheck.cpp.
|
inlineoverride |
Definition at line 25 of file LambdaFunctionNameCheck.h.
|
override |
Definition at line 70 of file LambdaFunctionNameCheck.cpp.
|
override |
Definition at line 80 of file LambdaFunctionNameCheck.cpp.
References clang::tidy::bugprone::PP.
|
override |
Definition at line 66 of file LambdaFunctionNameCheck.cpp.