File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
cpp/common/src/codingstandards/cpp Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 1
1
import cpp
2
2
import codingstandards.cpp.types.Type
3
+ import codingstandards.cpp.types.FunctionType
3
4
4
5
/**
5
6
* Gets the `FunctionType` of an expression call.
Original file line number Diff line number Diff line change @@ -527,7 +527,6 @@ module FunctionDeclarationTypeEquivalence<
527
527
private class LeafType extends Type {
528
528
LeafType ( ) {
529
529
not this instanceof DerivedType and
530
- not this instanceof FunctionType and
531
530
not this instanceof FunctionType
532
531
}
533
532
}
Original file line number Diff line number Diff line change @@ -124,21 +124,3 @@ int sizeOfInt() {
124
124
size
125
125
)
126
126
}
127
-
128
- /**
129
- * Convenience class to reduce the awkwardness of how `RoutineType` and `FunctionPointerIshType`
130
- * don't have a common ancestor.
131
- */
132
- class FunctionType extends Type {
133
- FunctionType ( ) { this instanceof RoutineType or this instanceof FunctionPointerIshType }
134
-
135
- Type getReturnType ( ) {
136
- result = this .( RoutineType ) .getReturnType ( ) or
137
- result = this .( FunctionPointerIshType ) .getReturnType ( )
138
- }
139
-
140
- Type getParameterType ( int i ) {
141
- result = this .( RoutineType ) .getParameterType ( i ) or
142
- result = this .( FunctionPointerIshType ) .getParameterType ( i )
143
- }
144
- }
You can’t perform that action at this time.
0 commit comments