@@ -390,6 +390,7 @@ std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, cons
390
390
391
391
namespace {
392
392
struct IntegralInferModel : InferModel {
393
+ private:
393
394
bool match (const ValueFlow::Value& value) const override {
394
395
return value.isIntValue ();
395
396
}
@@ -410,10 +411,10 @@ ValuePtr<InferModel> makeIntegralInferModel()
410
411
411
412
namespace {
412
413
struct SymbolicInferModel : InferModel {
413
- const Token* expr;
414
414
explicit SymbolicInferModel (const Token* tok) : expr(tok) {
415
415
assert (expr->exprId () != 0 );
416
416
}
417
+ private:
417
418
bool match (const ValueFlow::Value& value) const override
418
419
{
419
420
return value.isSymbolicValue () && value.tokvalue && value.tokvalue ->exprId () == expr->exprId ();
@@ -426,6 +427,7 @@ namespace {
426
427
result.setKnown ();
427
428
return result;
428
429
}
430
+ const Token* expr;
429
431
};
430
432
}
431
433
@@ -436,6 +438,7 @@ ValuePtr<InferModel> makeSymbolicInferModel(const Token* token)
436
438
437
439
namespace {
438
440
struct IteratorInferModel : InferModel {
441
+ private:
439
442
virtual ValueFlow::Value::ValueType getType () const = 0;
440
443
bool match (const ValueFlow::Value& value) const override {
441
444
return value.valueType == getType ();
@@ -450,12 +453,14 @@ namespace {
450
453
};
451
454
452
455
struct EndIteratorInferModel : IteratorInferModel {
456
+ private:
453
457
ValueFlow::Value::ValueType getType () const override {
454
458
return ValueFlow::Value::ValueType::ITERATOR_END;
455
459
}
456
460
};
457
461
458
462
struct StartIteratorInferModel : IteratorInferModel {
463
+ private:
459
464
ValueFlow::Value::ValueType getType () const override {
460
465
return ValueFlow::Value::ValueType::ITERATOR_END;
461
466
}
0 commit comments