Lines Matching refs:allocator
377 llvm::BumpPtrAllocator &allocator() { return Arena.getAllocator(); } in allocator() function in syntax::TreeBuilder
722 new (allocator()) syntax::UnknownDeclaration(), D); in VisitDecl()
766 syntax::Declaration *Result = new (allocator()) syntax::SimpleDeclaration; in handleFreeStandingTagDecl()
799 new (allocator()) syntax::CompoundStatement, S); in WalkUpFromCompoundStmt()
806 new (allocator()) syntax::UnknownStatement, S); in WalkUpFromStmt()
874 new (allocator()) syntax::UnknownExpression, E); in WalkUpFromExpr()
891 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral()
893 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral()
895 return new (allocator()) syntax::CharUserDefinedLiteralExpression; in buildUserDefinedLiteral()
897 return new (allocator()) syntax::StringUserDefinedLiteralExpression; in buildUserDefinedLiteral()
912 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral()
915 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral()
988 return new (allocator()) syntax::GlobalNameSpecifier; in buildNameSpecifier()
993 auto *NS = new (allocator()) syntax::IdentifierNameSpecifier; in buildNameSpecifier()
1003 auto *NS = new (allocator()) syntax::SimpleTemplateNameSpecifier; in buildNameSpecifier()
1011 auto *NS = new (allocator()) syntax::DecltypeNameSpecifier; in buildNameSpecifier()
1039 new (allocator()) syntax::NestedNameSpecifier, in TraverseNestedNameSpecifierLoc()
1055 auto *TheUnqualifiedId = new (allocator()) syntax::UnqualifiedId; in buildIdExpression()
1063 auto *TheIdExpression = new (allocator()) syntax::IdExpression; in buildIdExpression()
1091 new (allocator()) syntax::MemberExpression, S); in WalkUpFromMemberExpr()
1115 new (allocator()) syntax::ThisExpression, S); in WalkUpFromCXXThisExpr()
1125 new (allocator()) syntax::ParenExpression, S); in WalkUpFromParenExpr()
1132 new (allocator()) syntax::IntegerLiteralExpression, S); in WalkUpFromIntegerLiteral()
1139 new (allocator()) syntax::CharacterLiteralExpression, S); in WalkUpFromCharacterLiteral()
1146 new (allocator()) syntax::FloatingLiteralExpression, S); in WalkUpFromFloatingLiteral()
1153 new (allocator()) syntax::StringLiteralExpression, S); in WalkUpFromStringLiteral()
1160 new (allocator()) syntax::BoolLiteralExpression, S); in WalkUpFromCXXBoolLiteralExpr()
1167 new (allocator()) syntax::CxxNullPtrExpression, S); in WalkUpFromCXXNullPtrLiteralExpr()
1178 new (allocator()) syntax::PostfixUnaryOperatorExpression, in WalkUpFromUnaryOperator()
1182 new (allocator()) syntax::PrefixUnaryOperatorExpression, in WalkUpFromUnaryOperator()
1194 new (allocator()) syntax::BinaryOperatorExpression, S); in WalkUpFromBinaryOperator()
1211 auto *Arguments = new (allocator()) syntax::CallArguments; in buildCallArguments()
1236 new (allocator()) syntax::CallExpression, S); in WalkUpFromCallExpr()
1279 new (allocator()) syntax::BinaryOperatorExpression, S); in WalkUpFromCXXOperatorCallExpr()
1286 new (allocator()) syntax::PrefixUnaryOperatorExpression, in WalkUpFromCXXOperatorCallExpr()
1294 new (allocator()) syntax::PostfixUnaryOperatorExpression, in WalkUpFromCXXOperatorCallExpr()
1314 new (allocator()) syntax::CallExpression, S); in WalkUpFromCXXOperatorCallExpr()
1334 Builder.foldNode(Tokens, new (allocator()) syntax::NamespaceDefinition, S); in WalkUpFromNamespaceDecl()
1351 new (allocator()) syntax::ParenDeclarator, L); in WalkUpFromParenTypeLoc()
1361 new (allocator()) syntax::ArraySubscript, L); in WalkUpFromArrayTypeLoc()
1373 auto *Parameters = new (allocator()) syntax::ParameterDeclarationList; in buildParameterDeclarationList()
1389 new (allocator()) syntax::ParametersAndQualifiers, L); in WalkUpFromFunctionTypeLoc()
1416 new (allocator()) syntax::MemberPointer, L); in WalkUpFromMemberPointerTypeLoc()
1425 new (allocator()) syntax::DeclarationStatement, S); in WalkUpFromDeclStmt()
1431 new (allocator()) syntax::EmptyStatement, S); in WalkUpFromNullStmt()
1440 new (allocator()) syntax::SwitchStatement, S); in WalkUpFromSwitchStmt()
1450 new (allocator()) syntax::CaseStatement, S); in WalkUpFromCaseStmt()
1459 new (allocator()) syntax::DefaultStatement, S); in WalkUpFromDefaultStmt()
1473 new (allocator()) syntax::IfStatement, S); in WalkUpFromIfStmt()
1481 new (allocator()) syntax::ForStatement, S); in WalkUpFromForStmt()
1490 new (allocator()) syntax::WhileStatement, S); in WalkUpFromWhileStmt()
1498 new (allocator()) syntax::ContinueStatement, S); in WalkUpFromContinueStmt()
1506 new (allocator()) syntax::BreakStatement, S); in WalkUpFromBreakStmt()
1515 new (allocator()) syntax::ReturnStatement, S); in WalkUpFromReturnStmt()
1523 new (allocator()) syntax::RangeBasedForStatement, S); in WalkUpFromCXXForRangeStmt()
1529 new (allocator()) syntax::EmptyDeclaration, S); in WalkUpFromEmptyDecl()
1537 new (allocator()) syntax::StaticAssertDeclaration, S); in WalkUpFromStaticAssertDecl()
1543 new (allocator()) syntax::LinkageSpecificationDeclaration, in WalkUpFromLinkageSpecDecl()
1550 new (allocator()) syntax::NamespaceAliasDefinition, S); in WalkUpFromNamespaceAliasDecl()
1556 new (allocator()) syntax::UsingNamespaceDirective, S); in WalkUpFromUsingDirectiveDecl()
1562 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUsingDecl()
1568 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUnresolvedUsingValueDecl()
1574 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUnresolvedUsingTypenameDecl()
1580 new (allocator()) syntax::TypeAliasDeclaration, S); in WalkUpFromTypeAliasDecl()
1595 Builder.markChild(new (allocator()) syntax::DeclaratorList, in processDeclaratorAndDeclaration()
1598 new (allocator()) syntax::SimpleDeclaration, D); in processDeclaratorAndDeclaration()
1602 auto *N = new (allocator()) syntax::SimpleDeclarator; in processDeclaratorAndDeclaration()
1613 auto *DL = new (allocator()) syntax::DeclaratorList; in processDeclaratorAndDeclaration()
1619 new (allocator()) syntax::SimpleDeclaration, D); in processDeclaratorAndDeclaration()
1634 ReturnDeclarator = new (allocator()) syntax::SimpleDeclarator; in buildTrailingReturn()
1647 auto *R = new (allocator()) syntax::TrailingReturnType; in buildTrailingReturn()
1662 Range, new (allocator()) syntax::ExplicitTemplateInstantiation, From); in foldExplicitTemplateInstantiation()
1671 auto *N = new (allocator()) syntax::TemplateDeclaration; in foldTemplateDeclaration()
1678 llvm::BumpPtrAllocator &allocator() { return Builder.allocator(); } in allocator() function in __anon99e135900511::BuildTreeVisitor
1726 ChildNode = new (allocator()) syntax::ExpressionStatement; in markStmtChild()