Skip to content

Commit 0e12c9d

Browse files
committed
C++: Simplify this suppression for specifiers
1 parent cc8e980 commit 0e12c9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/ql/lib/semmle/code/cpp/Specifier.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private import semmle.code.cpp.internal.ResolveClass
1212
class Specifier extends Element, @specifier {
1313
/** Gets a dummy location for the specifier. */
1414
override Location getLocation() {
15-
suppressUnusedThis(this) and
15+
exists(this) and
1616
result instanceof UnknownDefaultLocation
1717
}
1818

@@ -300,5 +300,3 @@ class AttributeArgument extends Element, @attribute_arg {
300300
)
301301
}
302302
}
303-
304-
private predicate suppressUnusedThis(Specifier s) { any() }

0 commit comments

Comments
 (0)