@@ -9479,7 +9479,43 @@ ir.cpp:
9479
9479
# 1079| getEntryPoint(): [BlockStmt] { ... }
9480
9480
# 1080| getStmt(0): [RangeBasedForStmt] for(...:...) ...
9481
9481
# 1080| getChild(0): [DeclStmt] declaration
9482
+ # 1080| getDeclarationEntry(0): (no string representation)
9483
+ # 1080| Type = [LValueReferenceType] const vector<int> &
9484
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__range)
9485
+ # 1080| getExpr(): [VariableAccess] v
9486
+ # 1080| Type = [LValueReferenceType] const vector<int> &
9487
+ # 1080| ValueCategory = prvalue(load)
9488
+ # 1080| getExpr().getFullyConverted(): [ReferenceToExpr] (reference to)
9489
+ # 1080| Type = [LValueReferenceType] const vector<int> &
9490
+ # 1080| ValueCategory = prvalue
9491
+ # 1080| getExpr(): [ReferenceDereferenceExpr] (reference dereference)
9492
+ # 1080| Type = [SpecifiedType] const vector<int>
9493
+ # 1080| ValueCategory = lvalue
9482
9494
# 1080| getBeginEndDeclaration(): [DeclStmt] declaration
9495
+ # 1080| getDeclarationEntry(0): (no string representation)
9496
+ # 1080| Type = [NestedStruct] iterator
9497
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__begin)
9498
+ # 1080| getExpr(): [FunctionCall] call to begin
9499
+ # 1080| Type = [NestedStruct] iterator
9500
+ # 1080| ValueCategory = prvalue
9501
+ # 1080| getQualifier(): [VariableAccess] (__range)
9502
+ # 1080| Type = [LValueReferenceType] const vector<int> &
9503
+ # 1080| ValueCategory = prvalue(load)
9504
+ #-----| getQualifier().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
9505
+ #-----| Type = [SpecifiedType] const vector<int>
9506
+ #-----| ValueCategory = lvalue
9507
+ # 1080| getDeclarationEntry(1): (no string representation)
9508
+ # 1080| Type = [NestedStruct] iterator
9509
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__end)
9510
+ # 1080| getExpr(): [FunctionCall] call to end
9511
+ # 1080| Type = [NestedStruct] iterator
9512
+ # 1080| ValueCategory = prvalue
9513
+ # 1080| getQualifier(): [VariableAccess] (__range)
9514
+ # 1080| Type = [LValueReferenceType] const vector<int> &
9515
+ # 1080| ValueCategory = prvalue(load)
9516
+ #-----| getQualifier().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
9517
+ #-----| Type = [SpecifiedType] const vector<int>
9518
+ #-----| ValueCategory = lvalue
9483
9519
# 1080| getCondition(): [FunctionCall] call to operator!=
9484
9520
# 1080| Type = [BoolType] bool
9485
9521
# 1080| ValueCategory = prvalue
@@ -9500,6 +9536,22 @@ ir.cpp:
9500
9536
# 1080| Type = [NestedStruct] iterator
9501
9537
# 1080| ValueCategory = lvalue
9502
9538
# 1080| getChild(4): [DeclStmt] declaration
9539
+ # 1080| getDeclarationEntry(0): [VariableDeclarationEntry] definition of e
9540
+ # 1080| Type = [IntType] int
9541
+ # 1080| getVariable().getInitializer(): [Initializer] initializer for e
9542
+ # 1080| getExpr(): [OverloadedPointerDereferenceExpr] call to operator*
9543
+ # 1080| Type = [LValueReferenceType] int &
9544
+ # 1080| ValueCategory = prvalue
9545
+ # 1080| getQualifier(): [VariableAccess] (__begin)
9546
+ # 1080| Type = [NestedStruct] iterator
9547
+ # 1080| ValueCategory = lvalue
9548
+ #-----| getQualifier().getFullyConverted(): [CStyleCast] (const iterator)...
9549
+ #-----| Conversion = [GlvalueConversion] glvalue conversion
9550
+ #-----| Type = [SpecifiedType] const iterator
9551
+ #-----| ValueCategory = lvalue
9552
+ # 1080| getExpr().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
9553
+ # 1080| Type = [IntType] int
9554
+ # 1080| ValueCategory = prvalue(load)
9503
9555
# 1080| getStmt(): [BlockStmt] { ... }
9504
9556
# 1081| getStmt(0): [IfStmt] if (...) ...
9505
9557
# 1081| getCondition(): [GTExpr] ... > ...
@@ -9520,7 +9572,43 @@ ir.cpp:
9520
9572
# 1080| ValueCategory = lvalue
9521
9573
# 1086| getStmt(1): [RangeBasedForStmt] for(...:...) ...
9522
9574
# 1086| getChild(0): [DeclStmt] declaration
9575
+ # 1086| getDeclarationEntry(0): (no string representation)
9576
+ # 1086| Type = [LValueReferenceType] const vector<int> &
9577
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__range)
9578
+ # 1086| getExpr(): [VariableAccess] v
9579
+ # 1086| Type = [LValueReferenceType] const vector<int> &
9580
+ # 1086| ValueCategory = prvalue(load)
9581
+ # 1086| getExpr().getFullyConverted(): [ReferenceToExpr] (reference to)
9582
+ # 1086| Type = [LValueReferenceType] const vector<int> &
9583
+ # 1086| ValueCategory = prvalue
9584
+ # 1086| getExpr(): [ReferenceDereferenceExpr] (reference dereference)
9585
+ # 1086| Type = [SpecifiedType] const vector<int>
9586
+ # 1086| ValueCategory = lvalue
9523
9587
# 1086| getBeginEndDeclaration(): [DeclStmt] declaration
9588
+ # 1086| getDeclarationEntry(0): (no string representation)
9589
+ # 1086| Type = [NestedStruct] iterator
9590
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__begin)
9591
+ # 1086| getExpr(): [FunctionCall] call to begin
9592
+ # 1086| Type = [NestedStruct] iterator
9593
+ # 1086| ValueCategory = prvalue
9594
+ # 1086| getQualifier(): [VariableAccess] (__range)
9595
+ # 1086| Type = [LValueReferenceType] const vector<int> &
9596
+ # 1086| ValueCategory = prvalue(load)
9597
+ #-----| getQualifier().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
9598
+ #-----| Type = [SpecifiedType] const vector<int>
9599
+ #-----| ValueCategory = lvalue
9600
+ # 1086| getDeclarationEntry(1): (no string representation)
9601
+ # 1086| Type = [NestedStruct] iterator
9602
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__end)
9603
+ # 1086| getExpr(): [FunctionCall] call to end
9604
+ # 1086| Type = [NestedStruct] iterator
9605
+ # 1086| ValueCategory = prvalue
9606
+ # 1086| getQualifier(): [VariableAccess] (__range)
9607
+ # 1086| Type = [LValueReferenceType] const vector<int> &
9608
+ # 1086| ValueCategory = prvalue(load)
9609
+ #-----| getQualifier().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
9610
+ #-----| Type = [SpecifiedType] const vector<int>
9611
+ #-----| ValueCategory = lvalue
9524
9612
# 1086| getCondition(): [FunctionCall] call to operator!=
9525
9613
# 1086| Type = [BoolType] bool
9526
9614
# 1086| ValueCategory = prvalue
@@ -9541,6 +9629,29 @@ ir.cpp:
9541
9629
# 1086| Type = [NestedStruct] iterator
9542
9630
# 1086| ValueCategory = lvalue
9543
9631
# 1086| getChild(4): [DeclStmt] declaration
9632
+ # 1086| getDeclarationEntry(0): [VariableDeclarationEntry] definition of e
9633
+ # 1086| Type = [LValueReferenceType] const int &
9634
+ # 1086| getVariable().getInitializer(): [Initializer] initializer for e
9635
+ # 1086| getExpr(): [OverloadedPointerDereferenceExpr] call to operator*
9636
+ # 1086| Type = [LValueReferenceType] int &
9637
+ # 1086| ValueCategory = prvalue
9638
+ # 1086| getQualifier(): [VariableAccess] (__begin)
9639
+ # 1086| Type = [NestedStruct] iterator
9640
+ # 1086| ValueCategory = lvalue
9641
+ #-----| getQualifier().getFullyConverted(): [CStyleCast] (const iterator)...
9642
+ #-----| Conversion = [GlvalueConversion] glvalue conversion
9643
+ #-----| Type = [SpecifiedType] const iterator
9644
+ #-----| ValueCategory = lvalue
9645
+ # 1086| getExpr().getFullyConverted(): [ReferenceToExpr] (reference to)
9646
+ # 1086| Type = [LValueReferenceType] const int &
9647
+ # 1086| ValueCategory = prvalue
9648
+ # 1086| getExpr(): [CStyleCast] (const int)...
9649
+ # 1086| Conversion = [GlvalueConversion] glvalue conversion
9650
+ # 1086| Type = [SpecifiedType] const int
9651
+ # 1086| ValueCategory = lvalue
9652
+ # 1086| getExpr(): [ReferenceDereferenceExpr] (reference dereference)
9653
+ # 1086| Type = [IntType] int
9654
+ # 1086| ValueCategory = lvalue
9544
9655
# 1086| getStmt(): [BlockStmt] { ... }
9545
9656
# 1087| getStmt(0): [IfStmt] if (...) ...
9546
9657
# 1087| getCondition(): [LTExpr] ... < ...
@@ -16410,7 +16521,48 @@ ir.cpp:
16410
16521
# 2152| ValueCategory = prvalue
16411
16522
# 2153| getStmt(5): [RangeBasedForStmt] for(...:...) ...
16412
16523
# 2153| getChild(0): [DeclStmt] declaration
16524
+ # 2153| getDeclarationEntry(0): (no string representation)
16525
+ # 2153| Type = [LValueReferenceType] vector<ClassWithDestructor> &
16526
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__range)
16527
+ # 2153| getExpr(): [VariableAccess] ys
16528
+ # 2153| Type = [ClassTemplateInstantiation,Struct] vector<ClassWithDestructor>
16529
+ # 2153| ValueCategory = lvalue
16530
+ # 2153| getExpr().getFullyConverted(): [ReferenceToExpr] (reference to)
16531
+ # 2153| Type = [LValueReferenceType] vector<ClassWithDestructor> &
16532
+ # 2153| ValueCategory = prvalue
16413
16533
# 2153| getBeginEndDeclaration(): [DeclStmt] declaration
16534
+ # 2153| getDeclarationEntry(0): (no string representation)
16535
+ # 2153| Type = [NestedStruct] iterator
16536
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__begin)
16537
+ # 2153| getExpr(): [FunctionCall] call to begin
16538
+ # 2153| Type = [NestedStruct] iterator
16539
+ # 2153| ValueCategory = prvalue
16540
+ # 2153| getQualifier(): [VariableAccess] (__range)
16541
+ # 2153| Type = [LValueReferenceType] vector<ClassWithDestructor> &
16542
+ # 2153| ValueCategory = prvalue(load)
16543
+ #-----| getQualifier().getFullyConverted(): [CStyleCast] (const vector<ClassWithDestructor>)...
16544
+ #-----| Conversion = [GlvalueConversion] glvalue conversion
16545
+ #-----| Type = [SpecifiedType] const vector<ClassWithDestructor>
16546
+ #-----| ValueCategory = lvalue
16547
+ #-----| getExpr(): [ReferenceDereferenceExpr] (reference dereference)
16548
+ #-----| Type = [ClassTemplateInstantiation,Struct] vector<ClassWithDestructor>
16549
+ #-----| ValueCategory = lvalue
16550
+ # 2153| getDeclarationEntry(1): (no string representation)
16551
+ # 2153| Type = [NestedStruct] iterator
16552
+ #-----| getVariable().getInitializer(): [Initializer] initializer for (__end)
16553
+ # 2153| getExpr(): [FunctionCall] call to end
16554
+ # 2153| Type = [NestedStruct] iterator
16555
+ # 2153| ValueCategory = prvalue
16556
+ # 2153| getQualifier(): [VariableAccess] (__range)
16557
+ # 2153| Type = [LValueReferenceType] vector<ClassWithDestructor> &
16558
+ # 2153| ValueCategory = prvalue(load)
16559
+ #-----| getQualifier().getFullyConverted(): [CStyleCast] (const vector<ClassWithDestructor>)...
16560
+ #-----| Conversion = [GlvalueConversion] glvalue conversion
16561
+ #-----| Type = [SpecifiedType] const vector<ClassWithDestructor>
16562
+ #-----| ValueCategory = lvalue
16563
+ #-----| getExpr(): [ReferenceDereferenceExpr] (reference dereference)
16564
+ #-----| Type = [ClassTemplateInstantiation,Struct] vector<ClassWithDestructor>
16565
+ #-----| ValueCategory = lvalue
16414
16566
# 2153| getCondition(): [FunctionCall] call to operator!=
16415
16567
# 2153| Type = [BoolType] bool
16416
16568
# 2153| ValueCategory = prvalue
@@ -16431,6 +16583,22 @@ ir.cpp:
16431
16583
# 2153| Type = [NestedStruct] iterator
16432
16584
# 2153| ValueCategory = lvalue
16433
16585
# 2153| getChild(4): [DeclStmt] declaration
16586
+ # 2153| getDeclarationEntry(0): [VariableDeclarationEntry] definition of y
16587
+ # 2153| Type = [Class] ClassWithDestructor
16588
+ # 2153| getVariable().getInitializer(): [Initializer] initializer for y
16589
+ # 2153| getExpr(): [OverloadedPointerDereferenceExpr] call to operator*
16590
+ # 2153| Type = [LValueReferenceType] ClassWithDestructor &
16591
+ # 2153| ValueCategory = prvalue
16592
+ # 2153| getQualifier(): [VariableAccess] (__begin)
16593
+ # 2153| Type = [NestedStruct] iterator
16594
+ # 2153| ValueCategory = lvalue
16595
+ #-----| getQualifier().getFullyConverted(): [CStyleCast] (const iterator)...
16596
+ #-----| Conversion = [GlvalueConversion] glvalue conversion
16597
+ #-----| Type = [SpecifiedType] const iterator
16598
+ #-----| ValueCategory = lvalue
16599
+ # 2153| getExpr().getFullyConverted(): [ReferenceDereferenceExpr] (reference dereference)
16600
+ # 2153| Type = [Class] ClassWithDestructor
16601
+ # 2153| ValueCategory = prvalue(load)
16434
16602
# 2154| getStmt(): [ExprStmt] ExprStmt
16435
16603
# 2154| getExpr(): [FunctionCall] call to set_x
16436
16604
# 2154| Type = [VoidType] void
0 commit comments