テーマ: code-generation
-
Tracing ownership in files that mix generated and handwritten code
Locate the owner of a disputed region in a partly generated file when the generator is unclear or handwritten customizations share the same file.
-
CMake の生成ファイル:ビルド順序と再生成の依存関係を分ける
並列ターゲットに競合する規則を与えず、入力やジェネレーターが変わったときに生成ソースを再ビルドさせる。
-
Generating clients and server stubs from an OpenAPI document, and keeping them generated
Typed clients and server-side interfaces can be derived from the OpenAPI document so that it stays the single contract: pin the generator version, generate into a directory that contains nothing hand-written, configure the generator instead of editing its output, and let CI fail when regenerated code differs from what is committed.
機械可読: JSON