Skip to content

Commit cf8f802

Browse files
committed
C++: Rename predicate.
1 parent ab42ddb commit cf8f802

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/ql/src/semmle/code/cpp/PrintAST.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class PrintASTNode extends TPrintASTNode {
125125
*/
126126
final PrintASTNode getChild(int childIndex) {
127127
exists(int nonConvertedIndex, boolean isConverted |
128-
deconstructIndex(childIndex, nonConvertedIndex, isConverted)
128+
mapIndex(childIndex, nonConvertedIndex, isConverted)
129129
|
130130
if isConverted = false
131131
then result = getChildInternal(childIndex)
@@ -177,7 +177,7 @@ class PrintASTNode extends TPrintASTNode {
177177
final string getChildAccessorPredicate(int childIndex) {
178178
exists(getChild(childIndex)) and
179179
exists(int nonConvertedIndex, boolean isConverted |
180-
deconstructIndex(childIndex, nonConvertedIndex, isConverted)
180+
mapIndex(childIndex, nonConvertedIndex, isConverted)
181181
|
182182
if isConverted = false
183183
then result = getChildAccessorPredicateInternal(childIndex)
@@ -198,7 +198,7 @@ class PrintASTNode extends TPrintASTNode {
198198
* Note: This predicate contains the mapping between the converted and nonconverted indexes, but
199199
* if `nonConvertedIndex` does not have conversions attached, there will be no node at `childIndex`.
200200
*/
201-
final predicate deconstructIndex(int childIndex, int nonConvertedIndex, boolean isConverted) {
201+
final predicate mapIndex(int childIndex, int nonConvertedIndex, boolean isConverted) {
202202
exists(getChildInternal(childIndex)) and
203203
nonConvertedIndex = childIndex and
204204
isConverted = false

0 commit comments

Comments
 (0)