@@ -809,7 +809,7 @@ class alignas(void *) Stmt {
809
809
LLVM_PREFERRED_TYPE (bool )
810
810
uint64_t Value : 1 ;
811
811
812
- // / The location of the boolean ligeral
812
+ // / The location of the boolean ligeral.
813
813
LLVM_PREFERRED_TYPE (SourceLocation)
814
814
uint64_t Loc : SourceLocation::Bits;
815
815
};
@@ -840,7 +840,7 @@ class alignas(void *) Stmt {
840
840
LLVM_PREFERRED_TYPE (bool )
841
841
uint64_t CapturedByCopyInLambdaWithExplicitObjectParameter : 1 ;
842
842
843
- // / The location of the "this"
843
+ // / The location of the "this".
844
844
LLVM_PREFERRED_TYPE (SourceLocation)
845
845
uint64_t Loc : SourceLocation::Bits;
846
846
};
@@ -856,7 +856,7 @@ class alignas(void *) Stmt {
856
856
LLVM_PREFERRED_TYPE (bool )
857
857
uint64_t IsThrownVariableInScope : 1 ;
858
858
859
- // / The location of the "throw"
859
+ // / The location of the "throw".
860
860
LLVM_PREFERRED_TYPE (SourceLocation)
861
861
uint64_t ThrowLoc : SourceLocation::Bits;
862
862
};
@@ -901,7 +901,6 @@ class alignas(void *) Stmt {
901
901
LLVM_PREFERRED_TYPE (ExprBitfields)
902
902
uint64_t : NumExprBits;
903
903
904
- // / The location where the default initializer expression was used.
905
904
LLVM_PREFERRED_TYPE (SourceLocation)
906
905
uint64_t RParenLoc : SourceLocation::Bits;
907
906
};
@@ -978,7 +977,7 @@ class alignas(void *) Stmt {
978
977
LLVM_PREFERRED_TYPE (bool )
979
978
uint64_t UsualArrayDeleteWantsSize : 1 ;
980
979
981
- // / Location of the expression
980
+ // / Location of the expression.
982
981
LLVM_PREFERRED_TYPE (SourceLocation)
983
982
uint64_t Loc : SourceLocation::Bits;
984
983
};
@@ -1308,7 +1307,6 @@ class alignas(void *) Stmt {
1308
1307
LLVM_PREFERRED_TYPE (bool )
1309
1308
uint64_t IsUnique : 1 ;
1310
1309
1311
- // / The location of the non-type template parameter reference.
1312
1310
LLVM_PREFERRED_TYPE (SourceLocation)
1313
1311
uint64_t Loc : SourceLocation::Bits;
1314
1312
};
@@ -2182,7 +2180,7 @@ class ValueStmt : public Stmt {
2182
2180
class LabelStmt : public ValueStmt {
2183
2181
LabelDecl *TheDecl;
2184
2182
Stmt *SubStmt;
2185
- bool SideEntry = false ; // FIXME: could improve
2183
+ bool SideEntry = false ;
2186
2184
2187
2185
public:
2188
2186
// / Build a label statement.
@@ -2545,8 +2543,12 @@ class IfStmt final
2545
2543
class SwitchStmt final : public Stmt,
2546
2544
private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2547
2545
friend TrailingObjects;
2546
+
2548
2547
// / Points to a linked list of case and default statements.
2549
2548
SwitchCase *FirstCase = nullptr ;
2549
+
2550
+ SourceLocation LParenLoc;
2551
+ SourceLocation RParenLoc;
2550
2552
2551
2553
// SwitchStmt is followed by several trailing objects,
2552
2554
// some of which optional. Note that it would be more convenient to
@@ -2567,8 +2569,6 @@ class SwitchStmt final : public Stmt,
2567
2569
// Always present.
2568
2570
enum { InitOffset = 0 , BodyOffsetFromCond = 1 };
2569
2571
enum { NumMandatoryStmtPtr = 2 };
2570
- SourceLocation LParenLoc;
2571
- SourceLocation RParenLoc;
2572
2572
2573
2573
unsigned numTrailingStatements () const {
2574
2574
return NumMandatoryStmtPtr + hasInitStorage () + hasVarStorage ();
@@ -2754,6 +2754,7 @@ class WhileStmt final : public Stmt,
2754
2754
//
2755
2755
enum { VarOffset = 0 , BodyOffsetFromCond = 1 };
2756
2756
enum { NumMandatoryStmtPtr = 2 };
2757
+
2757
2758
SourceLocation LParenLoc, RParenLoc;
2758
2759
2759
2760
unsigned varOffset () const { return VarOffset; }
@@ -2877,6 +2878,7 @@ class DoStmt : public Stmt {
2877
2878
Stmt *SubExprs[END_EXPR];
2878
2879
SourceLocation WhileLoc;
2879
2880
SourceLocation RParenLoc; // Location of final ')' in do stmt condition.
2881
+
2880
2882
public:
2881
2883
DoStmt (Stmt *Body, Expr *Cond, SourceLocation DL, SourceLocation WL,
2882
2884
SourceLocation RP)
@@ -3187,6 +3189,7 @@ class ReturnStmt final
3187
3189
: public Stmt,
3188
3190
private llvm::TrailingObjects<ReturnStmt, const VarDecl *> {
3189
3191
friend TrailingObjects;
3192
+
3190
3193
// / The return expression.
3191
3194
Stmt *RetExpr;
3192
3195
0 commit comments