Skip to content

Commit 1b433c7

Browse files
committed
C++: Add QLDoc comments.
1 parent c29d0b7 commit 1b433c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cpp/ql/lib/semmle/code/cpp/headers/PreprocBlock.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,26 @@ class PreprocessorBlock extends @element {
6262
endcolumn = 0
6363
}
6464

65+
/**
66+
* Gets a textual representation of this element.
67+
*/
6568
string toString() { result = mkElement(this).toString() }
6669

70+
/**
71+
* Gets the file this `PreprocessorBlock` is located in.
72+
*/
6773
cached
6874
File getFile() { result = mkElement(this).getFile() }
6975

76+
/**
77+
* Gets the start line number of this `PreprocessorBlock`.
78+
*/
7079
cached
7180
int getStartLine() { result = mkElement(this).getLocation().getStartLine() }
7281

82+
/**
83+
* Gets the end line number of this `PreprocessorBlock`.
84+
*/
7385
cached
7486
int getEndLine() {
7587
result = mkElement(this).(File).getMetrics().getNumberOfLines() or

0 commit comments

Comments
 (0)