16 #ifndef LLVM_CLANG_AST_ASTLAMBDA_H 17 #define LLVM_CLANG_AST_ASTLAMBDA_H 30 if (!LambdaClass || !LambdaClass->
isLambda())
return false;
35 if (!DC || !isa<CXXMethodDecl>(DC))
return false;
40 if (!MD)
return false;
58 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
65 dyn_cast<CXXMethodDecl>(DC));
bool isLambdaConversionOperator(CXXConversionDecl *C)
bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD)
Decl - This represents one declaration (or definition), e.g.
Defines the C++ template declaration subclasses.
bool isLambda() const
Determine whether this class describes a lambda function object.
DeclContext * getLambdaAwareParentOfDeclContext(DeclContext *DC)
bool isLambdaCallOperator(const CXXMethodDecl *MD)
StringRef getLambdaStaticInvokerName()
OverloadedOperatorKind getOverloadedOperator() const
getOverloadedOperator - Which C++ overloaded operator this function represents, if any...
bool isFunctionTemplateSpecialization() const
Determine whether this function is a function template specialization.
DeclContext * getParent()
getParent - Returns the containing DeclContext.
Represents a C++ conversion function within a class.
Represents a static or instance method of a struct/union/class.
bool isGenericLambda() const
Determine whether this class describes a generic lambda function object (i.e.
Dataflow Directional Tag Classes.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
const CXXRecordDecl * getParent() const
Returns the parent of this method declaration, which is the class in which this method is defined...
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate.h) and friends (in DeclFriend.h).
Represents a C++ struct/union/class.
Declaration of a template function.