| 560 | } |
| 561 | |
| 562 | static std::string getInvalidValueString(CTU::FileInfo::InvalidValueType invalidValue) |
| 563 | { |
| 564 | using InvalidValueType = CTU::FileInfo::InvalidValueType; |
| 565 | switch (invalidValue) { |
| 566 | case InvalidValueType::null: |
| 567 | return "null"; |
| 568 | case InvalidValueType::uninit: |
| 569 | return "uninitialized"; |
| 570 | case InvalidValueType::bufferOverflow: |
| 571 | return "accessed out of bounds"; |
| 572 | } |
| 573 | cppcheck::unreachable(); |
| 574 | } |
| 575 | |
| 576 | std::list<ErrorMessage::FileLocation> CTU::FileInfo::getErrorPath(InvalidValueType invalidValue, |
| 577 | const CTU::FileInfo::UnsafeUsage &unsafeUsage, |
no test coverage detected