Skip to content

Commit 6495f19

Browse files
committed
C++: Properly deprecate hasQualifiedName by using the deprecated keyword
1 parent fe65fb8 commit 6495f19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ class Declaration extends Locatable, @declaration {
6868
* Holds if this declaration has the fully-qualified name `qualifiedName`.
6969
* See `getQualifiedName`.
7070
*/
71-
predicate hasQualifiedName(string qualifiedName) { this.getQualifiedName() = qualifiedName }
71+
deprecated predicate hasQualifiedName(string qualifiedName) {
72+
this.getQualifiedName() = qualifiedName
73+
}
7274

7375
/**
7476
* Holds if this declaration has a fully-qualified name with a name-space

0 commit comments

Comments
 (0)