File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,11 @@ class PrintASTNode extends TPrintASTNode {
235
235
private Function getEnclosingFunction ( ) { result = getParent * ( ) .( FunctionNode ) .getFunction ( ) }
236
236
}
237
237
238
- private class PrintableElementBase extends ElementBase {
239
- PrintableElementBase ( ) {
238
+ /**
239
+ * Class that restricts the elements that we compute `qlClass` for.
240
+ */
241
+ private class PrintableElement extends Element {
242
+ PrintableElement ( ) {
240
243
exists ( TASTNode ( this ) )
241
244
or
242
245
exists ( TDeclarationEntryNode ( _, this ) )
@@ -251,7 +254,7 @@ private class PrintableElementBase extends ElementBase {
251
254
/**
252
255
* Retrieves the canonical QL class(es) for entity `el`
253
256
*/
254
- private string qlClass ( PrintableElementBase el ) {
257
+ private string qlClass ( PrintableElement el ) {
255
258
result = "[" + concat ( el .getAPrimaryQlClass0 ( ) , "," ) + "] "
256
259
// Alternative implementation -- do not delete. It is useful for QL class discovery.
257
260
//result = "["+ concat(el.getAQlClass(), ",") + "] "
You can’t perform that action at this time.
0 commit comments