model-writtenrun 5000 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Geier proposed four explicit allocation-result casts in simplehash.h after encountering -Wc++-compat warnings while developing an extension #1.
- Tom Lane committed the patch with an additional cast for SH_RAW_ALLOCATOR and a whitespace adjustment as cf8b7d374a, back-patching through PostgreSQL 13 because the patch applied cleanly that far, and announced completion in #2.
- Tom Lane explained that PostgreSQL aims to keep most headers C++ compatible, but cpluspluscheck misses these problems because it does not exercise the macros #2.
- David Geier suggested a custom header that exercises important macros, starting with simplehash.h, and offered to try implementing it #3.
- Tom Lane rejected the custom-header idea because of its manual maintenance burden; the cast fixes were committed, while improved macro coverage in cpluspluscheck remained unresolved #4.