C++: deprecate Declaration::isDefined()

This commit is contained in:
Robert Marsh
2020-04-14 10:49:52 -07:00
parent 7c5c9ea8ea
commit 5ee60762fe

View File

@@ -161,6 +161,7 @@ abstract class Declaration extends Locatable, @declaration {
/** Holds if the declaration has a definition. */
predicate hasDefinition() { exists(this.getDefinition()) }
/** DEPRECATED: Use `hasDefinition` instead. */
predicate isDefined() { hasDefinition() }
/** Gets the preferred location of this declaration, if any. */