Skip to content

Commit 6a291cc

Browse files
committed
C++: fix (no string representation) for ConstructorInit
1 parent 7c38c48 commit 6a291cc

File tree

1 file changed

+4
-0
lines changed
  • cpp/ql/lib/semmle/code/cpp/exprs

1 file changed

+4
-0
lines changed

cpp/ql/lib/semmle/code/cpp/exprs/Call.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ class VacuousDestructorCall extends Expr, @vacuous_destructor_call {
504504
*/
505505
class ConstructorInit extends Expr, @ctorinit {
506506
override string getAPrimaryQlClass() { result = "ConstructorInit" }
507+
508+
override string toString() { result = "constructor init" }
507509
}
508510

509511
/**
@@ -512,6 +514,8 @@ class ConstructorInit extends Expr, @ctorinit {
512514
*/
513515
class ConstructorBaseInit extends ConstructorInit, ConstructorCall {
514516
override string getAPrimaryQlClass() { result = "ConstructorBaseInit" }
517+
518+
override string toString() { result = "call to " + this.getTarget().getName() }
515519
}
516520

517521
/**

0 commit comments

Comments
 (0)