Skip to content

Commit 7527d88

Browse files
committed
C++: Get rid of abstract'ness from these public predicates. We are not supposed to have abstract public stuff. Oops ...
1 parent 2af6db6 commit 7527d88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,14 +2124,14 @@ private newtype TContent =
21242124
*/
21252125
class Content extends TContent {
21262126
/** Gets a textual representation of this element. */
2127-
abstract string toString();
2127+
string toString() { none() } // overridden in subclasses
21282128

21292129
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
21302130
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0
21312131
}
21322132

21332133
/** Gets the indirection index of this `Content`. */
2134-
abstract int getIndirectionIndex();
2134+
int getIndirectionIndex() { none() } // overridden in subclasses
21352135

21362136
/**
21372137
* INTERNAL: Do not use.
@@ -2142,7 +2142,7 @@ class Content extends TContent {
21422142
* For example, a write to a field `f` implies that any content of
21432143
* the form `*f` is also cleared.
21442144
*/
2145-
abstract predicate impliesClearOf(Content c);
2145+
predicate impliesClearOf(Content c) { none() } // overridden in subclasses
21462146
}
21472147

21482148
/**

0 commit comments

Comments
 (0)