feat(libSceJson2): implement sce::Json::Value::clear #1204
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1204"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by CyanBook on 2026-10-07T17:32:20Z.
What
sce::Json::Value::clear()(_ZN3sce4Json5Value5clearEv) inlibSceJson2was stubbed withNotImplemented_nid_no_patch.Value::clearnow releases any heap resources owned by the value (strings, arrays, objects) viaClear(NodeOf(*self))and resets its type back toTypeNull, matching the existing behaviour ofObject::clear().GuestJson.cppgainsValueClear(), verifying that callingclear()on null, integer, string, and object values resets them toTypeNulland allows subsequent reuse.Tested
python tools/check_conventions.py --base origin/mainpasses with zero errors.python tools/progress.py outconfirmslibSceJson2moves from 89/92 (96.7%) to 90/92 (97.8%) and total libraries increase to 2517/2925 (86.05%).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T09:17:54Z.
Checked: build + full ctest green locally (guest_json passes); the new
ValueCleartest fails with theExport.cppchange reverted.clear()goes through the sameClear(NodeOf(*self))path asValue::set(Array/Object), so strings/arrays/objects are released and the value returns toTypeNull. Merging once CI is green (your runs were waiting for approval; I approved them).Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T09:38:47Z.
Progress report (
cea1ef1→cbc5b4c)📈 System libraries: 86.05% (+0.03%, +1 implemented functions)
✅ 1 implemented
_ZN3sce4Json5Value5clearEv