Discovered while running lint tool across daslib/. These are false positives or missing features in daslib/lint.das.
let (_, succ) = table.emplace(...)generates a variable named_`succ- Lint sees the
_prefix and warns: "variable is used and should be named without underscore prefix" - Fix: skip variables whose name contains a backtick (
`) — those are compiler-generated tuple field names - Files affected:
daslib/aot_cpp.das:609,621
var st : FStat; stat(f, st)—stis filled bystat()via reference parameter- Lint sees no direct
=assignment and suggestslet, butletwould fail sincestatwrites into it - Root cause:
builtin_statandbuiltin_fstatinmodule_builtin_fio.cppwere bound withSideEffects::modifyExternalinstead ofSideEffects::modifyArgumentAndExternal— FIXED - After C++ rebuild, lint should no longer report this false positive
- Files affected:
modules/dasLiveHost/live/live_watch_boost.das:49
daslib/just_in_time.dasfails to compile (needs LLVM) — skipdaslib/debug_eval.das:402— PERF003 character_at, intentionally unfixeddaslib/json.das:258— PERF006 tiny hex loop, intentionally unfixeddaslib/regex.das:665,1514— PERF006 in regex compilation, intentionally unfixeddaslib/rst.das— PERF003 character_at in function_name, intentionally unfixed