File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ private module SourceVariables {
22
22
23
23
SourceVariable ( ) { this = TMkSourceVariable ( base , ind ) }
24
24
25
+ /** Gets the IR variable associated with this `SourceVariable`, if any. */
25
26
IRVariable getIRVariable ( ) { result = base .( BaseIRVariable ) .getIRVariable ( ) }
26
27
27
28
/**
Original file line number Diff line number Diff line change @@ -377,6 +377,7 @@ abstract private class AbstractBaseSourceVariable extends TBaseSourceVariable {
377
377
/** Gets the type of this base source variable. */
378
378
final DataFlowType getType ( ) { this .getLanguageType ( ) .hasUnspecifiedType ( result , _) }
379
379
380
+ /** Gets the `CppType` of this base source variable. */
380
381
abstract CppType getLanguageType ( ) ;
381
382
}
382
383
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ private import semmle.code.cpp.ir.dataflow.internal.SsaInternalsCommon
16
16
17
17
private module SourceVariables {
18
18
class SourceVariable extends BaseSourceVariable {
19
+ /**
20
+ * Gets the base source variable of this `SourceVariable`.
21
+ */
19
22
BaseSourceVariable getBaseVariable ( ) { result = this }
20
23
}
21
24
}
You can’t perform that action at this time.
0 commit comments