Home
last modified time | relevance | path

Searched refs:IsLambda (Results 1 – 7 of 7) sorted by relevance

/external/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp540 TEST(DeclarationMatcher, IsLambda) { in TEST() argument
541 const auto IsLambda = cxxMethodDecl(ofClass(cxxRecordDecl(isLambda()))); in TEST() local
542 EXPECT_TRUE(matches("auto x = []{};", IsLambda)); in TEST()
543 EXPECT_TRUE(notMatches("struct S { void operator()() const; };", IsLambda)); in TEST()
/external/clang/include/clang/AST/
DDeclCXX.h457 unsigned IsLambda : 1; member
537 IsLambda = true; in LambdaDefinitionData()
603 assert(DD && DD->IsLambda && "queried lambda property of non-lambda class"); in getLambdaData()
1030 return DD && DD->IsLambda; in isLambda()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1518 if (Data.IsLambda) { in ReadCXXDefinitionData()
1576 assert(!DD.IsLambda && !MergeDD.IsLambda && "faked up lambda definition?"); in MergeDefinitionData()
1634 MATCH_FIELD(IsLambda) in MergeDefinitionData()
1653 if (DD.IsLambda) { in MergeDefinitionData()
1668 bool IsLambda = Record[Idx++]; in ReadCXXRecordDefinition() local
1669 if (IsLambda) in ReadCXXRecordDefinition()
DASTWriter.cpp5475 Record->push_back(Data.IsLambda); in AddCXXDefinitionData()
5534 if (Data.IsLambda) { in AddCXXDefinitionData()
/external/clang/lib/AST/
DDeclCXX.cpp73 HasDeclaredCopyAssignmentWithConstParam(false), IsLambda(false), in DefinitionData()
DASTImporter.cpp2172 ToData.IsLambda = FromData.IsLambda; in ImportDefinition()
/external/clang/lib/Sema/
DSemaExpr.cpp13231 bool IsLambda = isa<LambdaScopeInfo>(CSI); in isVariableCapturable() local
13237 if (IsLambda && !Var->getDeclName()) { in isVariableCapturable()
13273 if (HasBlocksAttr && (IsLambda || isa<CapturedRegionScopeInfo>(CSI))) { in isVariableCapturable()
13276 << Var->getDeclName() << !IsLambda; in isVariableCapturable()