C++: Add more QLDoc.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-08-07 15:22:46 +01:00
parent 291f1a189d
commit f2f4e1f882
3 changed files with 5 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ private module SourceVariables {
SourceVariable() { this = TMkSourceVariable(base, ind) }
/** Gets the IR variable associated with this `SourceVariable`, if any. */
IRVariable getIRVariable() { result = base.(BaseIRVariable).getIRVariable() }
/**

View File

@@ -377,6 +377,7 @@ abstract private class AbstractBaseSourceVariable extends TBaseSourceVariable {
/** Gets the type of this base source variable. */
final DataFlowType getType() { this.getLanguageType().hasUnspecifiedType(result, _) }
/** Gets the `CppType` of this base source variable. */
abstract CppType getLanguageType();
}

View File

@@ -16,6 +16,9 @@ private import semmle.code.cpp.ir.dataflow.internal.SsaInternalsCommon
private module SourceVariables {
class SourceVariable extends BaseSourceVariable {
/**
* Gets the base source variable of this `SourceVariable`.
*/
BaseSourceVariable getBaseVariable() { result = this }
}
}