#2314·simdjson

Development checks should detect more anti-patterns

Author: lemireCreated Dec 17, 2024Updated Aug 3, 2026
Labelsenhancement

Currently, some patterns will lead to failure, but there is no warning. The are the cases where we are current iterating over an array or an object and within the loop, we access the array or the object being iterated over.

cpp
for(auto value : myobject) {
  myobject.reset();
}

or

cpp
for(auto value : myobject) {
  if(...) { myobject["mykey"]; }
}