Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit668e518

Browse files
committed
Address compilation issue with FunctionType.
1 parent61ae04f commit668e518

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

‎cpp/common/src/codingstandards/cpp/Call.qll‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import cpp
22
import codingstandards.cpp.types.Type
3+
import codingstandards.cpp.types.FunctionType
34

45
/**
56
* Gets the `FunctionType` of an expression call.

‎cpp/common/src/codingstandards/cpp/types/Compatible.qll‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ module FunctionDeclarationTypeEquivalence<
527527
privateclassLeafTypeextendsType{
528528
LeafType(){
529529
notthisinstanceofDerivedTypeand
530-
notthisinstanceofFunctionTypeand
531530
notthisinstanceofFunctionType
532531
}
533532
}

‎cpp/common/src/codingstandards/cpp/types/Type.qll‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,3 @@ int sizeOfInt() {
124124
size
125125
)
126126
}
127-
128-
/**
129-
* Convenience class to reduce the awkwardness of how `RoutineType` and `FunctionPointerIshType`
130-
* don't have a common ancestor.
131-
*/
132-
classFunctionTypeextendsType{
133-
FunctionType(){thisinstanceofRoutineTypeorthisinstanceofFunctionPointerIshType}
134-
135-
TypegetReturnType(){
136-
result=this.(RoutineType).getReturnType()or
137-
result=this.(FunctionPointerIshType).getReturnType()
138-
}
139-
140-
TypegetParameterType(inti){
141-
result=this.(RoutineType).getParameterType(i)or
142-
result=this.(FunctionPointerIshType).getParameterType(i)
143-
}
144-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp