Skip to content

Commit a98992f

Browse files
committed
C#/C++/Java: distinguish toString of nil from cons
1 parent cdede87 commit a98992f

File tree

21 files changed

+70
-70
lines changed

21 files changed

+70
-70
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ abstract private class AccessPath extends TAccessPath {
12601260

12611261
private class AccessPathNil extends AccessPath, TNil {
12621262
override string toString() {
1263-
exists(DataFlowType t | this = TNil(t) | result = concat(ppReprType(t)))
1263+
exists(DataFlowType t | this = TNil(t) | result = concat(" : " + ppReprType(t)))
12641264
}
12651265

12661266
override AccessPathFront getFront() {
@@ -2081,7 +2081,7 @@ private module FlowExploration {
20812081

20822082
private class PartialAccessPathNil extends PartialAccessPath, TPartialNil {
20832083
override string toString() {
2084-
exists(DataFlowType t | this = TPartialNil(t) | result = concat(ppReprType(t)))
2084+
exists(DataFlowType t | this = TPartialNil(t) | result = concat(" : " + ppReprType(t)))
20852085
}
20862086

20872087
override AccessPathFront getFront() {

0 commit comments

Comments
 (0)