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()
765 syntax::Declaration *Result = new (allocator()) syntax::SimpleDeclaration; in handleFreeStandingTagDecl()
798 new (allocator()) syntax::CompoundStatement, S); in WalkUpFromCompoundStmt()
805 new (allocator()) syntax::UnknownStatement, S); in WalkUpFromStmt()
873 new (allocator()) syntax::UnknownExpression, E); in WalkUpFromExpr()
890 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral()
892 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral()
894 return new (allocator()) syntax::CharUserDefinedLiteralExpression; in buildUserDefinedLiteral()
896 return new (allocator()) syntax::StringUserDefinedLiteralExpression; in buildUserDefinedLiteral()
911 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral()
914 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral()
987 return new (allocator()) syntax::GlobalNameSpecifier; in buildNameSpecifier()
992 auto *NS = new (allocator()) syntax::IdentifierNameSpecifier; in buildNameSpecifier()
1002 auto *NS = new (allocator()) syntax::SimpleTemplateNameSpecifier; in buildNameSpecifier()
1010 auto *NS = new (allocator()) syntax::DecltypeNameSpecifier; in buildNameSpecifier()
1038 new (allocator()) syntax::NestedNameSpecifier, in TraverseNestedNameSpecifierLoc()
1054 auto *TheUnqualifiedId = new (allocator()) syntax::UnqualifiedId; in buildIdExpression()
1062 auto *TheIdExpression = new (allocator()) syntax::IdExpression; in buildIdExpression()
1090 new (allocator()) syntax::MemberExpression, S); in WalkUpFromMemberExpr()
1114 new (allocator()) syntax::ThisExpression, S); in WalkUpFromCXXThisExpr()
1124 new (allocator()) syntax::ParenExpression, S); in WalkUpFromParenExpr()
1131 new (allocator()) syntax::IntegerLiteralExpression, S); in WalkUpFromIntegerLiteral()
1138 new (allocator()) syntax::CharacterLiteralExpression, S); in WalkUpFromCharacterLiteral()
1145 new (allocator()) syntax::FloatingLiteralExpression, S); in WalkUpFromFloatingLiteral()
1152 new (allocator()) syntax::StringLiteralExpression, S); in WalkUpFromStringLiteral()
1159 new (allocator()) syntax::BoolLiteralExpression, S); in WalkUpFromCXXBoolLiteralExpr()
1166 new (allocator()) syntax::CxxNullPtrExpression, S); in WalkUpFromCXXNullPtrLiteralExpr()
1177 new (allocator()) syntax::PostfixUnaryOperatorExpression, in WalkUpFromUnaryOperator()
1181 new (allocator()) syntax::PrefixUnaryOperatorExpression, in WalkUpFromUnaryOperator()
1193 new (allocator()) syntax::BinaryOperatorExpression, S); in WalkUpFromBinaryOperator()
1210 auto *Arguments = new (allocator()) syntax::CallArguments; in buildCallArguments()
1235 new (allocator()) syntax::CallExpression, S); in WalkUpFromCallExpr()
1278 new (allocator()) syntax::BinaryOperatorExpression, S); in WalkUpFromCXXOperatorCallExpr()
1285 new (allocator()) syntax::PrefixUnaryOperatorExpression, in WalkUpFromCXXOperatorCallExpr()
1293 new (allocator()) syntax::PostfixUnaryOperatorExpression, in WalkUpFromCXXOperatorCallExpr()
1313 new (allocator()) syntax::CallExpression, S); in WalkUpFromCXXOperatorCallExpr()
1333 Builder.foldNode(Tokens, new (allocator()) syntax::NamespaceDefinition, S); in WalkUpFromNamespaceDecl()
1350 new (allocator()) syntax::ParenDeclarator, L); in WalkUpFromParenTypeLoc()
1360 new (allocator()) syntax::ArraySubscript, L); in WalkUpFromArrayTypeLoc()
1372 auto *Parameters = new (allocator()) syntax::ParameterDeclarationList; in buildParameterDeclarationList()
1388 new (allocator()) syntax::ParametersAndQualifiers, L); in WalkUpFromFunctionTypeLoc()
1415 new (allocator()) syntax::MemberPointer, L); in WalkUpFromMemberPointerTypeLoc()
1424 new (allocator()) syntax::DeclarationStatement, S); in WalkUpFromDeclStmt()
1430 new (allocator()) syntax::EmptyStatement, S); in WalkUpFromNullStmt()
1439 new (allocator()) syntax::SwitchStatement, S); in WalkUpFromSwitchStmt()
1449 new (allocator()) syntax::CaseStatement, S); in WalkUpFromCaseStmt()
1458 new (allocator()) syntax::DefaultStatement, S); in WalkUpFromDefaultStmt()
1472 new (allocator()) syntax::IfStatement, S); in WalkUpFromIfStmt()
1480 new (allocator()) syntax::ForStatement, S); in WalkUpFromForStmt()
1489 new (allocator()) syntax::WhileStatement, S); in WalkUpFromWhileStmt()
1497 new (allocator()) syntax::ContinueStatement, S); in WalkUpFromContinueStmt()
1505 new (allocator()) syntax::BreakStatement, S); in WalkUpFromBreakStmt()
1514 new (allocator()) syntax::ReturnStatement, S); in WalkUpFromReturnStmt()
1522 new (allocator()) syntax::RangeBasedForStatement, S); in WalkUpFromCXXForRangeStmt()
1528 new (allocator()) syntax::EmptyDeclaration, S); in WalkUpFromEmptyDecl()
1536 new (allocator()) syntax::StaticAssertDeclaration, S); in WalkUpFromStaticAssertDecl()
1542 new (allocator()) syntax::LinkageSpecificationDeclaration, in WalkUpFromLinkageSpecDecl()
1549 new (allocator()) syntax::NamespaceAliasDefinition, S); in WalkUpFromNamespaceAliasDecl()
1555 new (allocator()) syntax::UsingNamespaceDirective, S); in WalkUpFromUsingDirectiveDecl()
1561 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUsingDecl()
1567 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUnresolvedUsingValueDecl()
1573 new (allocator()) syntax::UsingDeclaration, S); in WalkUpFromUnresolvedUsingTypenameDecl()
1579 new (allocator()) syntax::TypeAliasDeclaration, S); in WalkUpFromTypeAliasDecl()
1594 Builder.markChild(new (allocator()) syntax::DeclaratorList, in processDeclaratorAndDeclaration()
1597 new (allocator()) syntax::SimpleDeclaration, D); in processDeclaratorAndDeclaration()
1601 auto *N = new (allocator()) syntax::SimpleDeclarator; in processDeclaratorAndDeclaration()
1612 auto *DL = new (allocator()) syntax::DeclaratorList; in processDeclaratorAndDeclaration()
1618 new (allocator()) syntax::SimpleDeclaration, D); in processDeclaratorAndDeclaration()
1633 ReturnDeclarator = new (allocator()) syntax::SimpleDeclarator; in buildTrailingReturn()
1646 auto *R = new (allocator()) syntax::TrailingReturnType; in buildTrailingReturn()
1661 Range, new (allocator()) syntax::ExplicitTemplateInstantiation, From); in foldExplicitTemplateInstantiation()
1670 auto *N = new (allocator()) syntax::TemplateDeclaration; in foldTemplateDeclaration()
1677 llvm::BumpPtrAllocator &allocator() { return Builder.allocator(); } in allocator() function in __anon5b12a8520511::BuildTreeVisitor
1725 ChildNode = new (allocator()) syntax::ExpressionStatement; in markStmtChild()