@@ -10,7 +10,7 @@ private import semmle.code.cpp.rangeanalysis.SimpleRangeAnalysis
10
10
private import semmle.code.cpp.rangeanalysis.RangeAnalysisUtils
11
11
12
12
private newtype TBufferWriteEstimationReason =
13
- TNoSpecifiedEstimateReason ( ) or
13
+ TUnspecifiedEstimateReason ( ) or
14
14
TTypeBoundsAnalysis ( ) or
15
15
TValueFlowAnalysis ( )
16
16
@@ -40,8 +40,8 @@ abstract class BufferWriteEstimationReason extends TBufferWriteEstimationReason
40
40
* classes derived from BufferWrite and overriding `getMaxData/0` still work with the
41
41
* queries as intended.
42
42
*/
43
- class NoSpecifiedEstimateReason extends BufferWriteEstimationReason , TNoSpecifiedEstimateReason {
44
- override string toString ( ) { result = "NoSpecifiedEstimateReason " }
43
+ class UnspecifiedEstimateReason extends BufferWriteEstimationReason , TUnspecifiedEstimateReason {
44
+ override string toString ( ) { result = "UnspecifiedEstimateReason " }
45
45
46
46
override string getDescription ( ) { result = "no reason specified" }
47
47
@@ -62,7 +62,7 @@ class TypeBoundsAnalysis extends BufferWriteEstimationReason, TTypeBoundsAnalysi
62
62
override string getDescription ( ) { result = "based on type bounds" }
63
63
64
64
override BufferWriteEstimationReason combineWith ( BufferWriteEstimationReason other ) {
65
- other != TNoSpecifiedEstimateReason ( ) and result = TTypeBoundsAnalysis ( )
65
+ other != TUnspecifiedEstimateReason ( ) and result = TTypeBoundsAnalysis ( )
66
66
}
67
67
}
68
68
@@ -82,7 +82,7 @@ class ValueFlowAnalysis extends BufferWriteEstimationReason, TValueFlowAnalysis
82
82
override string getDescription ( ) { result = "based on flow analysis of value bounds" }
83
83
84
84
override BufferWriteEstimationReason combineWith ( BufferWriteEstimationReason other ) {
85
- other != TNoSpecifiedEstimateReason ( ) and result = other
85
+ other != TUnspecifiedEstimateReason ( ) and result = other
86
86
}
87
87
}
88
88
0 commit comments