NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature
| 575 | |
| 576 | // NOLINTNEXTLINE(readability-non-const-parameter) - used as callback so we need to preserve the signature |
| 577 | static bool isUnsafeUsage(const Settings &settings, const Token *vartok, CTU::FileInfo::Value *value) |
| 578 | { |
| 579 | (void)value; |
| 580 | bool unknown = false; |
| 581 | return CheckNullPointerImpl::isPointerDeRef(vartok, unknown, settings); |
| 582 | } |
| 583 | |
| 584 | // a Clang-built executable will crash when using the anonymous MyFileInfo later on - so put it in a unique namespace for now |
| 585 | // see https://trac.cppcheck.net/ticket/12108 for more details |