| 380 | } |
| 381 | |
| 382 | void setSourceLocation(Value& v, |
| 383 | SourceLocation ctx, |
| 384 | const Token* tok, |
| 385 | SourceLocation local) |
| 386 | { |
| 387 | std::string file = ctx.file_name(); |
| 388 | if (file.empty()) |
| 389 | return; |
| 390 | std::string s = Path::stripDirectoryPart(file) + ":" + std::to_string(ctx.line()) + ": " + ctx.function_name() + |
| 391 | " => " + local.function_name() + ": " + debugString(v); |
| 392 | v.debugPath.emplace_back(tok, std::move(s)); |
| 393 | } |
| 394 | |
| 395 | MathLib::bigint valueFlowGetStrLength(const Token* tok, const Settings& settings) |
| 396 | { |
no test coverage detected