Skip to content

Commit 6d954fe

Browse files
committed
C++: Deprecate hasQualifiedName/1
This predicate handles templates differently from the other overloads with the same name, so it's likely to cause confusion.
1 parent 5e78990 commit 6d954fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ abstract class Declaration extends Locatable, @declaration {
5757
}
5858

5959
/**
60+
* DEPRECATED: Prefer `hasGlobalName` or the 2-argument or 3-argument
61+
* `hasQualifiedName` predicates. To get the exact same results as this
62+
* predicate in all edge cases, use `getQualifiedName()`.
63+
*
6064
* Holds if this declaration has the fully-qualified name `qualifiedName`.
6165
* See `getQualifiedName`.
6266
*/
67+
deprecated
6368
predicate hasQualifiedName(string qualifiedName) {
6469
this.getQualifiedName() = qualifiedName
6570
}

0 commit comments

Comments
 (0)