Skip to content

Commit 2ee8344

Browse files
authored
Merge pull request github#12387 from jketema/qualified-deprecation
C++: Properly deprecate `hasQualifiedName` by using the `deprecated` keyword
2 parents 4aeff0f + 6495f19 commit 2ee8344

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)