Skip to content

Commit f24c4e5

Browse files
committed
C++: add method qldoc in Diagnostics.qll
1 parent d065389 commit f24c4e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Diagnostic extends Locatable, @diagnostic {
1111
/** Gets the error code for this compiler message. */
1212
string getTag() { diagnostics(underlyingElement(this), _, result, _, _, _) }
1313

14+
/** Holds if `s` is the error code for this compiler message. */
1415
predicate hasTag(string s) { this.getTag() = s }
1516

1617
/**

0 commit comments

Comments
 (0)