Skip to content

Commit cfe86bf

Browse files
committed
C++: Remove default getAPrimaryQlClass().
1 parent f70f32e commit cfe86bf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ class ElementBase extends @element {
6565
* which they belong; for example, `AddExpr` is a primary class, but
6666
* `BinaryOperation` is not.
6767
*
68-
* This predicate always has a result. If no primary class can be
69-
* determined, the result is `"???"`. If multiple primary classes match,
70-
* this predicate can have multiple results.
68+
* This predicate can have multiple results if multiple primary classes match.
69+
* For some elements, this predicate may not exist.
7170
*/
72-
string getAPrimaryQlClass() { result = "???" }
71+
string getAPrimaryQlClass() { none() }
7372
}
7473

7574
/**

0 commit comments

Comments
 (0)