We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29d0b7 commit 1b433c7Copy full SHA for 1b433c7
1 file changed
cpp/ql/lib/semmle/code/cpp/headers/PreprocBlock.qll
@@ -62,14 +62,26 @@ class PreprocessorBlock extends @element {
62
endcolumn = 0
63
}
64
65
+ /**
66
+ * Gets a textual representation of this element.
67
+ */
68
string toString() { result = mkElement(this).toString() }
69
70
71
+ * Gets the file this `PreprocessorBlock` is located in.
72
73
cached
74
File getFile() { result = mkElement(this).getFile() }
75
76
77
+ * Gets the start line number of this `PreprocessorBlock`.
78
79
80
int getStartLine() { result = mkElement(this).getLocation().getStartLine() }
81
82
83
+ * Gets the end line number of this `PreprocessorBlock`.
84
85
86
int getEndLine() {
87
result = mkElement(this).(File).getMetrics().getNumberOfLines() or
0 commit comments