C++: add method qldoc in Diagnostics.qll

This commit is contained in:
Robert Marsh
2020-04-13 14:58:30 -07:00
parent d065389a6b
commit f24c4e51c5

View File

@@ -11,6 +11,7 @@ class Diagnostic extends Locatable, @diagnostic {
/** Gets the error code for this compiler message. */
string getTag() { diagnostics(underlyingElement(this), _, result, _, _, _) }
/** Holds if `s` is the error code for this compiler message. */
predicate hasTag(string s) { this.getTag() = s }
/**