Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f24c4e5

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)