Skip to content

Commit

Permalink
C++: Remove some redundant toStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jketema committed Jan 9, 2025
1 parent 6325dd2 commit ac05bfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/ql/lib/semmle/code/cpp/PrintAST.qll
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ class ConceptIdExprArgumentsNode extends PrintAstNode, TConceptIdExprArgumentsNo

override string getChildAccessorPredicateInternal(int childIndex) {
exists(this.getChildInternal(childIndex)) and
result = "getTemplateArgument(" + childIndex.toString() + ")"
result = "getTemplateArgument(" + childIndex + ")"
}

/**
Expand Down Expand Up @@ -698,7 +698,7 @@ class FunctionParametersNode extends PrintAstNode, TFunctionParametersNode {

override string getChildAccessorPredicateInternal(int childIndex) {
exists(this.getChildInternal(childIndex)) and
result = "getParameter(" + childIndex.toString() + ")"
result = "getParameter(" + childIndex + ")"
}

/**
Expand All @@ -725,7 +725,7 @@ class RequiresExprParametersNode extends PrintAstNode, TRequiresExprParametersNo

override string getChildAccessorPredicateInternal(int childIndex) {
exists(this.getChildInternal(childIndex)) and
result = "getParameter(" + childIndex.toString() + ")"
result = "getParameter(" + childIndex + ")"
}

/**
Expand All @@ -752,7 +752,7 @@ class ConstructorInitializersNode extends PrintAstNode, TConstructorInitializers

final override string getChildAccessorPredicateInternal(int childIndex) {
exists(this.getChildInternal(childIndex)) and
result = "getInitializer(" + childIndex.toString() + ")"
result = "getInitializer(" + childIndex + ")"
}

/**
Expand All @@ -779,7 +779,7 @@ class DestructorDestructionsNode extends PrintAstNode, TDestructorDestructionsNo

final override string getChildAccessorPredicateInternal(int childIndex) {
exists(this.getChildInternal(childIndex)) and
result = "getDestruction(" + childIndex.toString() + ")"
result = "getDestruction(" + childIndex + ")"
}

/**
Expand Down

0 comments on commit ac05bfc

Please sign in to comment.