File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir
csharp/ql/src/semmle/code/csharp/ir Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55private import internal.IRTypeInternal
66
7+ cached
78private newtype TIRType =
89 TIRVoidType ( ) or
910 TIRUnknownType ( ) or
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ private IRType getIRTypeForPRValue(Type type) {
175175 )
176176}
177177
178+ cached
178179private newtype TCppType =
179180 TPRValueType ( Type type ) { exists ( getIRTypeForPRValue ( type ) ) } or
180181 TFunctionGLValueType ( ) or
@@ -203,6 +204,7 @@ class CppType extends TCppType {
203204 * Gets the `IRType` that represents this `CppType`. Many different `CppType`s can map to a single
204205 * `IRType`.
205206 */
207+ cached
206208 IRType getIRType ( ) { none ( ) }
207209
208210 /**
Original file line number Diff line number Diff line change 44
55private import internal.IRTypeInternal
66
7+ cached
78private newtype TIRType =
89 TIRVoidType ( ) or
910 TIRUnknownType ( ) or
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ private IRType getIRTypeForPRValue(Type type) {
144144
145145string getOpaqueTagIdentityString ( Type tag ) { result = tag .getQualifiedName ( ) }
146146
147+ cached
147148private newtype TCSharpType =
148149 TPRValueType ( Type type ) { exists ( getIRTypeForPRValue ( type ) ) } or
149150 TGLValueAddressType ( Type type ) { any ( ) } or
@@ -163,6 +164,7 @@ class CSharpType extends TCSharpType {
163164 * Gets the `IRType` that represents this `CSharpType`. Many different `CSharpType`s can map to a
164165 * single `IRType`.
165166 */
167+ cached
166168 abstract IRType getIRType ( ) ;
167169
168170 /**
You can’t perform that action at this time.
0 commit comments