(!LambdaClass || !LambdaClass->
isLambda())
return false;
35 if(!DC || !isa<CXXMethodDecl>(DC))
return false;
40 if(
const auto*MD = dyn_cast_if_present<CXXMethodDecl>(DC))
41 returnMD->getParent()->isLambda();
47cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction();
56!cast<CXXMethodDecl>(DC)->getType().isNull() &&
57!cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction();
61 if(!MD)
return false;
70 return C?
C->getParent()->isLambda() :
false;
74 if(!
D)
return false;
79dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl()))
86dyn_cast<CXXMethodDecl>(DC));
91 const auto*MD = dyn_cast<CXXMethodDecl>(DC);
92 if(!MD)
return false;
96MD->isFunctionTemplateSpecialization();
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
Defines the C++ template declaration subclasses.
Represents a C++ conversion function within a class.
Represents a static or instance method of a struct/union/class.
const CXXRecordDecl * getParent() const
Return the parent of this method declaration, which is the class in which this method is defined.
Represents a C++ struct/union/class.
bool isGenericLambda() const
Determine whether this class describes a generic lambda function object (i.e.
bool isLambda() const
Determine whether this class describes a lambda function object.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
DeclContext * getParent()
getParent - Returns the containing DeclContext.
Decl - This represents one declaration (or definition), e.g.
bool isFunctionTemplateSpecialization() const
Determine whether this function is a function template specialization.
OverloadedOperatorKind getOverloadedOperator() const
getOverloadedOperator - Which C++ overloaded operator this function represents, if any.
Declaration of a template function.
The JSON file list parser is used to communicate input to InstallAPI.
bool isLambdaCallWithImplicitObjectParameter(const DeclContext *DC)
DeclContext * getLambdaAwareParentOfDeclContext(DeclContext *DC)
bool isLambdaCallWithExplicitObjectParameter(const DeclContext *DC)
bool isGenericLambdaCallOperatorOrStaticInvokerSpecialization(const DeclContext *DC)
bool isLambdaCallOperator(const CXXMethodDecl *MD)
bool isLambdaConversionOperator(CXXConversionDecl *C)
StringRef getLambdaStaticInvokerName()
bool isLambdaMethod(const DeclContext *DC)
bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4