Files
logos-cpp-sdk/.github
Dario LipicarandClaude Opus 4.8 4fc85b71bf docs: generator doc-test — the three LIDL ⇄ C++ flows (#94)
Add an executable doc-test that exercises logos-cpp-generator across the
three flows it supports, on the commit under test:

  1. provider header → LIDL  (--header-to-lidl): distil the contract from
     a plain C++ impl class.
  2. LIDL → provider         (--lidl --backend cdylib): emit the C-ABI
     provider glue that exports the impl class to the host.
  3. LIDL → consumer header  (--lidl --module-only): emit the typed
     caller header consumers compile against.

The example is a rich `sensor_module` interface — methods of arity 0–4,
the full type set (int/uint/float64/bool/tstr/bstr, typed arrays,
result), and multi-line docs on methods and events. A final section adds
the composite types (records, maps, optionals).

Registered in doctests/run.sh and the doctests workflow.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:28:11 -03:00
..