| 2477 | const std::set<std::string> CheckClassImpl::stl_containers_not_const = { "map", "unordered_map", "std :: map|unordered_map <" }; // start pattern |
| 2478 | |
| 2479 | static bool isNonConstPtrCast(const Token* tok) |
| 2480 | { |
| 2481 | if (!tok || !tok->isCast()) |
| 2482 | return false; |
| 2483 | const ValueType* vt = tok->valueType(); |
| 2484 | return !vt || (vt->pointer > 0 && !vt->isConst(vt->pointer)); |
| 2485 | } |
| 2486 | |
| 2487 | bool CheckClassImpl::checkConstFunc(const Scope *scope, const Function *func, MemberAccess& memberAccessed) const |
| 2488 | { |
no test coverage detected