C++: Deprecate hasQualifiedName/1

This predicate handles templates differently from the other overloads
with the same name, so it's likely to cause confusion.
This commit is contained in:
Jonas Jensen
2019-05-03 10:10:36 +02:00
parent 5e789901df
commit 6d954fe53e

View File

@@ -57,9 +57,14 @@ abstract class Declaration extends Locatable, @declaration {
}
/**
* DEPRECATED: Prefer `hasGlobalName` or the 2-argument or 3-argument
* `hasQualifiedName` predicates. To get the exact same results as this
* predicate in all edge cases, use `getQualifiedName()`.
*
* Holds if this declaration has the fully-qualified name `qualifiedName`.
* See `getQualifiedName`.
*/
deprecated
predicate hasQualifiedName(string qualifiedName) {
this.getQualifiedName() = qualifiedName
}