Skip to content

Commit f2f4e1f

Browse files
committed
C++: Add more QLDoc.
1 parent 291f1a1 commit f2f4e1f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ private module SourceVariables {
2222

2323
SourceVariable() { this = TMkSourceVariable(base, ind) }
2424

25+
/** Gets the IR variable associated with this `SourceVariable`, if any. */
2526
IRVariable getIRVariable() { result = base.(BaseIRVariable).getIRVariable() }
2627

2728
/**

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ abstract private class AbstractBaseSourceVariable extends TBaseSourceVariable {
377377
/** Gets the type of this base source variable. */
378378
final DataFlowType getType() { this.getLanguageType().hasUnspecifiedType(result, _) }
379379

380+
/** Gets the `CppType` of this base source variable. */
380381
abstract CppType getLanguageType();
381382
}
382383

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/ssa0/SsaInternals.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ private import semmle.code.cpp.ir.dataflow.internal.SsaInternalsCommon
1616

1717
private module SourceVariables {
1818
class SourceVariable extends BaseSourceVariable {
19+
/**
20+
* Gets the base source variable of this `SourceVariable`.
21+
*/
1922
BaseSourceVariable getBaseVariable() { result = this }
2023
}
2124
}

0 commit comments

Comments
 (0)