mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
C++: add method qldoc in Diagnostics.qll
This commit is contained in:
@@ -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 }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user