C++: fix format

This commit is contained in:
Paolo Tranquilli
2021-12-09 11:47:32 +00:00
committed by GitHub
parent b0242dc55b
commit 2020786fb0

View File

@@ -55,7 +55,8 @@ class ValueFlowAnalysis extends BufferWriteEstimationReason, TValueFlowAnalysis
override string toString() { result = "based on flow analysis of value bounds" }
override BufferWriteEstimationReason combineWith(BufferWriteEstimationReason other) {
other = TTypeBoundsAnalysis() and result = TTypeBoundsAnalysis() or
other = TTypeBoundsAnalysis() and result = TTypeBoundsAnalysis()
or
other = TValueFlowAnalysis() and result = TValueFlowAnalysis()
}
}
@@ -1046,7 +1047,7 @@ class FormatLiteral extends Literal {
/**
* Gets the maximum length of the string that can be produced by the nth
* conversion specifier of this format string, specifying the estimation reason;
* has no result if this cannot be determined.
* has no result if this cannot be determined.
*/
int getMaxConvertedLength(int n, BufferWriteEstimationReason reason) {
exists(int len |