@@ -271,9 +271,9 @@ class NestedNameSpecifier final : public List {
271
271
static bool classof (const Node *N) {
272
272
return N->kind () <= NodeKind::NestedNameSpecifier;
273
273
}
274
- std::vector<NameSpecifier *> specifiers ();
274
+ std::vector<NameSpecifier *> getSpecifiers ();
275
275
std::vector<List::ElementAndDelimiter<syntax::NameSpecifier>>
276
- specifiersAndDoubleColons ();
276
+ getSpecifiersAndDoubleColons ();
277
277
};
278
278
279
279
// / Models an `unqualified-id`. C++ [expr.prim.id.unqual]
@@ -299,9 +299,9 @@ class IdExpression final : public Expression {
299
299
static bool classof (const Node *N) {
300
300
return N->kind () == NodeKind::IdExpression;
301
301
}
302
- NestedNameSpecifier *qualifier ();
303
- Leaf *templateKeyword ();
304
- UnqualifiedId *unqualifiedId ();
302
+ NestedNameSpecifier *getQualifier ();
303
+ Leaf *getTemplateKeyword ();
304
+ UnqualifiedId *getUnqualifiedId ();
305
305
};
306
306
307
307
// / An expression of an unknown kind, i.e. one not currently handled by the
@@ -321,7 +321,7 @@ class ThisExpression final : public Expression {
321
321
static bool classof (const Node *N) {
322
322
return N->kind () == NodeKind::ThisExpression;
323
323
}
324
- Leaf *thisKeyword ();
324
+ Leaf *getThisKeyword ();
325
325
};
326
326
327
327
// / Models arguments of a function call.
@@ -335,8 +335,8 @@ class CallArguments final : public List {
335
335
static bool classof (const Node *N) {
336
336
return N->kind () <= NodeKind::CallArguments;
337
337
}
338
- std::vector<Expression *> arguments ();
339
- std::vector<List::ElementAndDelimiter<Expression>> argumentsAndCommas ();
338
+ std::vector<Expression *> getArguments ();
339
+ std::vector<List::ElementAndDelimiter<Expression>> getArgumentsAndCommas ();
340
340
};
341
341
342
342
// / A function call. C++ [expr.call]
@@ -349,10 +349,10 @@ class CallExpression final : public Expression {
349
349
static bool classof (const Node *N) {
350
350
return N->kind () == NodeKind::CallExpression;
351
351
}
352
- Expression *callee ();
353
- Leaf *openParen ();
354
- CallArguments *arguments ();
355
- Leaf *closeParen ();
352
+ Expression *getCallee ();
353
+ Leaf *getOpenParen ();
354
+ CallArguments *getArguments ();
355
+ Leaf *getCloseParen ();
356
356
};
357
357
358
358
// / Models a parenthesized expression `(E)`. C++ [expr.prim.paren]
@@ -363,9 +363,9 @@ class ParenExpression final : public Expression {
363
363
static bool classof (const Node *N) {
364
364
return N->kind () == NodeKind::ParenExpression;
365
365
}
366
- Leaf *openParen ();
367
- Expression *subExpression ();
368
- Leaf *closeParen ();
366
+ Leaf *getOpenParen ();
367
+ Expression *getSubExpression ();
368
+ Leaf *getCloseParen ();
369
369
};
370
370
371
371
// / Models a class member access. C++ [expr.ref]
@@ -382,10 +382,10 @@ class MemberExpression final : public Expression {
382
382
static bool classof (const Node *N) {
383
383
return N->kind () == NodeKind::MemberExpression;
384
384
}
385
- Expression *object ();
386
- Leaf *accessToken ();
387
- Leaf *templateKeyword ();
388
- IdExpression *member ();
385
+ Expression *getObject ();
386
+ Leaf *getAccessToken ();
387
+ Leaf *getTemplateKeyword ();
388
+ IdExpression *getMember ();
389
389
};
390
390
391
391
// / Expression for literals. C++ [lex.literal]
@@ -404,7 +404,7 @@ class LiteralExpression : public Expression {
404
404
N->kind () == NodeKind::CharUserDefinedLiteralExpression ||
405
405
N->kind () == NodeKind::StringUserDefinedLiteralExpression;
406
406
}
407
- Leaf *literalToken ();
407
+ Leaf *getLiteralToken ();
408
408
};
409
409
410
410
// / Expression for integer literals. C++ [lex.icon]
@@ -539,8 +539,8 @@ class UnaryOperatorExpression : public Expression {
539
539
return N->kind () == NodeKind::PrefixUnaryOperatorExpression ||
540
540
N->kind () == NodeKind::PostfixUnaryOperatorExpression;
541
541
}
542
- Leaf *operatorToken ();
543
- Expression *operand ();
542
+ Leaf *getOperatorToken ();
543
+ Expression *getOperand ();
544
544
};
545
545
546
546
// / <operator> <operand>
@@ -588,9 +588,9 @@ class BinaryOperatorExpression final : public Expression {
588
588
static bool classof (const Node *N) {
589
589
return N->kind () == NodeKind::BinaryOperatorExpression;
590
590
}
591
- Expression *lhs ();
592
- Leaf *operatorToken ();
593
- Expression *rhs ();
591
+ Expression *getLhs ();
592
+ Leaf *getOperatorToken ();
593
+ Expression *getRhs ();
594
594
};
595
595
596
596
// / An abstract node for C++ statements, e.g. 'while', 'if', etc.
@@ -639,8 +639,8 @@ class SwitchStatement final : public Statement {
639
639
static bool classof (const Node *N) {
640
640
return N->kind () == NodeKind::SwitchStatement;
641
641
}
642
- Leaf *switchKeyword ();
643
- Statement *body ();
642
+ Leaf *getSwitchKeyword ();
643
+ Statement *getBody ();
644
644
};
645
645
646
646
// / case <value>: <body>
@@ -650,9 +650,9 @@ class CaseStatement final : public Statement {
650
650
static bool classof (const Node *N) {
651
651
return N->kind () == NodeKind::CaseStatement;
652
652
}
653
- Leaf *caseKeyword ();
654
- Expression *caseValue ();
655
- Statement *body ();
653
+ Leaf *getCaseKeyword ();
654
+ Expression *getCaseValue ();
655
+ Statement *getBody ();
656
656
};
657
657
658
658
// / default: <body>
@@ -662,8 +662,8 @@ class DefaultStatement final : public Statement {
662
662
static bool classof (const Node *N) {
663
663
return N->kind () == NodeKind::DefaultStatement;
664
664
}
665
- Leaf *defaultKeyword ();
666
- Statement *body ();
665
+ Leaf *getDefaultKeyword ();
666
+ Statement *getBody ();
667
667
};
668
668
669
669
// / if (cond) <then-statement> else <else-statement>
@@ -674,10 +674,10 @@ class IfStatement final : public Statement {
674
674
static bool classof (const Node *N) {
675
675
return N->kind () == NodeKind::IfStatement;
676
676
}
677
- Leaf *ifKeyword ();
678
- Statement *thenStatement ();
679
- Leaf *elseKeyword ();
680
- Statement *elseStatement ();
677
+ Leaf *getIfKeyword ();
678
+ Statement *getThenStatement ();
679
+ Leaf *getElseKeyword ();
680
+ Statement *getElseStatement ();
681
681
};
682
682
683
683
// / for (<init>; <cond>; <increment>) <body>
@@ -687,8 +687,8 @@ class ForStatement final : public Statement {
687
687
static bool classof (const Node *N) {
688
688
return N->kind () == NodeKind::ForStatement;
689
689
}
690
- Leaf *forKeyword ();
691
- Statement *body ();
690
+ Leaf *getForKeyword ();
691
+ Statement *getBody ();
692
692
};
693
693
694
694
// / while (<cond>) <body>
@@ -698,8 +698,8 @@ class WhileStatement final : public Statement {
698
698
static bool classof (const Node *N) {
699
699
return N->kind () == NodeKind::WhileStatement;
700
700
}
701
- Leaf *whileKeyword ();
702
- Statement *body ();
701
+ Leaf *getWhileKeyword ();
702
+ Statement *getBody ();
703
703
};
704
704
705
705
// / continue;
@@ -709,7 +709,7 @@ class ContinueStatement final : public Statement {
709
709
static bool classof (const Node *N) {
710
710
return N->kind () == NodeKind::ContinueStatement;
711
711
}
712
- Leaf *continueKeyword ();
712
+ Leaf *getContinueKeyword ();
713
713
};
714
714
715
715
// / break;
@@ -719,7 +719,7 @@ class BreakStatement final : public Statement {
719
719
static bool classof (const Node *N) {
720
720
return N->kind () == NodeKind::BreakStatement;
721
721
}
722
- Leaf *breakKeyword ();
722
+ Leaf *getBreakKeyword ();
723
723
};
724
724
725
725
// / return <expr>;
@@ -730,8 +730,8 @@ class ReturnStatement final : public Statement {
730
730
static bool classof (const Node *N) {
731
731
return N->kind () == NodeKind::ReturnStatement;
732
732
}
733
- Leaf *returnKeyword ();
734
- Expression *returnValue ();
733
+ Leaf *getReturnKeyword ();
734
+ Expression *getReturnValue ();
735
735
};
736
736
737
737
// / for (<decl> : <init>) <body>
@@ -741,8 +741,8 @@ class RangeBasedForStatement final : public Statement {
741
741
static bool classof (const Node *N) {
742
742
return N->kind () == NodeKind::RangeBasedForStatement;
743
743
}
744
- Leaf *forKeyword ();
745
- Statement *body ();
744
+ Leaf *getForKeyword ();
745
+ Statement *getBody ();
746
746
};
747
747
748
748
// / Expression in a statement position, e.g. functions calls inside compound
@@ -753,7 +753,7 @@ class ExpressionStatement final : public Statement {
753
753
static bool classof (const Node *N) {
754
754
return N->kind () == NodeKind::ExpressionStatement;
755
755
}
756
- Expression *expression ();
756
+ Expression *getExpression ();
757
757
};
758
758
759
759
// / { statement1; statement2; … }
@@ -763,10 +763,10 @@ class CompoundStatement final : public Statement {
763
763
static bool classof (const Node *N) {
764
764
return N->kind () == NodeKind::CompoundStatement;
765
765
}
766
- Leaf *lbrace ();
766
+ Leaf *getLbrace ();
767
767
// / FIXME: use custom iterator instead of 'vector'.
768
- std::vector<Statement *> statements ();
769
- Leaf *rbrace ();
768
+ std::vector<Statement *> getStatements ();
769
+ Leaf *getRbrace ();
770
770
};
771
771
772
772
// / A declaration that can appear at the top-level. Note that this does *not*
@@ -808,8 +808,8 @@ class StaticAssertDeclaration final : public Declaration {
808
808
static bool classof (const Node *N) {
809
809
return N->kind () == NodeKind::StaticAssertDeclaration;
810
810
}
811
- Expression *condition ();
812
- Expression *message ();
811
+ Expression *getCondition ();
812
+ Expression *getMessage ();
813
813
};
814
814
815
815
// / extern <string-literal> declaration
@@ -833,7 +833,7 @@ class SimpleDeclaration final : public Declaration {
833
833
return N->kind () == NodeKind::SimpleDeclaration;
834
834
}
835
835
// / FIXME: use custom iterator instead of 'vector'.
836
- std::vector<SimpleDeclarator *> declarators ();
836
+ std::vector<SimpleDeclarator *> getDeclarators ();
837
837
};
838
838
839
839
// / template <template-parameters> <declaration>
@@ -843,8 +843,8 @@ class TemplateDeclaration final : public Declaration {
843
843
static bool classof (const Node *N) {
844
844
return N->kind () == NodeKind::TemplateDeclaration;
845
845
}
846
- Leaf *templateKeyword ();
847
- Declaration *declaration ();
846
+ Leaf *getTemplateKeyword ();
847
+ Declaration *getDeclaration ();
848
848
};
849
849
850
850
// / template <declaration>
@@ -859,9 +859,9 @@ class ExplicitTemplateInstantiation final : public Declaration {
859
859
static bool classof (const Node *N) {
860
860
return N->kind () == NodeKind::ExplicitTemplateInstantiation;
861
861
}
862
- Leaf *templateKeyword ();
863
- Leaf *externKeyword ();
864
- Declaration *declaration ();
862
+ Leaf *getTemplateKeyword ();
863
+ Leaf *getExternKeyword ();
864
+ Declaration *getDeclaration ();
865
865
};
866
866
867
867
// / namespace <name> { <decls> }
@@ -951,8 +951,8 @@ class ParenDeclarator final : public Declarator {
951
951
static bool classof (const Node *N) {
952
952
return N->kind () == NodeKind::ParenDeclarator;
953
953
}
954
- Leaf *lparen ();
955
- Leaf *rparen ();
954
+ Leaf *getLparen ();
955
+ Leaf *getRparen ();
956
956
};
957
957
958
958
// / Array size specified inside a declarator.
@@ -966,9 +966,9 @@ class ArraySubscript final : public Tree {
966
966
return N->kind () == NodeKind::ArraySubscript;
967
967
}
968
968
// TODO: add an accessor for the "static" keyword.
969
- Leaf *lbracket ();
970
- Expression *size ();
971
- Leaf *rbracket ();
969
+ Leaf *getLbracket ();
970
+ Expression *getSize ();
971
+ Leaf *getRbracket ();
972
972
};
973
973
974
974
// / Trailing return type after the parameter list, including the arrow token.
@@ -980,10 +980,10 @@ class TrailingReturnType final : public Tree {
980
980
return N->kind () == NodeKind::TrailingReturnType;
981
981
}
982
982
// TODO: add accessors for specifiers.
983
- Leaf *arrowToken ();
983
+ Leaf *getArrowToken ();
984
984
// FIXME: This should be a `type-id` following the grammar. Fix this once we
985
985
// have a representation of `type-id`s.
986
- SimpleDeclarator *declarator ();
986
+ SimpleDeclarator *getDeclarator ();
987
987
};
988
988
989
989
// / Models a `parameter-declaration-list` which appears within
@@ -994,9 +994,9 @@ class ParameterDeclarationList final : public List {
994
994
static bool classof (const Node *N) {
995
995
return N->kind () == NodeKind::ParameterDeclarationList;
996
996
}
997
- std::vector<SimpleDeclaration *> parameterDeclarations ();
997
+ std::vector<SimpleDeclaration *> getParameterDeclarations ();
998
998
std::vector<List::ElementAndDelimiter<syntax::SimpleDeclaration>>
999
- parametersAndCommas ();
999
+ getParametersAndCommas ();
1000
1000
};
1001
1001
1002
1002
// / Parameter list for a function type and a trailing return type, if the
@@ -1016,10 +1016,10 @@ class ParametersAndQualifiers final : public Tree {
1016
1016
static bool classof (const Node *N) {
1017
1017
return N->kind () == NodeKind::ParametersAndQualifiers;
1018
1018
}
1019
- Leaf *lparen ();
1020
- ParameterDeclarationList *parameters ();
1021
- Leaf *rparen ();
1022
- TrailingReturnType *trailingReturn ();
1019
+ Leaf *getLparen ();
1020
+ ParameterDeclarationList *getParameters ();
1021
+ Leaf *getRparen ();
1022
+ TrailingReturnType *getTrailingReturn ();
1023
1023
};
1024
1024
1025
1025
// / Member pointer inside a declarator
0 commit comments