Skip to content

Commit 5ee6076

Browse files
committed
C++: deprecate Declaration::isDefined()
1 parent 7c5c9ea commit 5ee6076

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ abstract class Declaration extends Locatable, @declaration {
161161
/** Holds if the declaration has a definition. */
162162
predicate hasDefinition() { exists(this.getDefinition()) }
163163

164+
/** DEPRECATED: Use `hasDefinition` instead. */
164165
predicate isDefined() { hasDefinition() }
165166

166167
/** Gets the preferred ___location of this declaration, if any. */

0 commit comments

Comments
 (0)