Skip to content

Align contributor and project-layout docs with C++20 tree - #15

Merged
ewanc26 merged 52 commits into
mainfrom
codex/selenium-cpp-reference-cleanup
Oct 26, 2026
Merged

ewanc26 merged 52 commits into
mainfrom
codex/selenium-cpp-reference-cleanup

Conversation

@ewanc26

@ewanc26 ewanc26 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR addresses the concrete migration defects found in issue #14.

  • Aligns README project layout and CONTRIBUTING.md with the actual C++20/CMake source tree.
  • Restores runtime/selenium_runtime.c, including the print and input helpers declared by generated C.
  • Replaces fixed /tmp/selenium_out.* paths with a unique temporary directory that is cleaned up.
  • Shell-quotes the selected C compiler and all file paths; validates CLI arguments and file read/write failures.
  • Fixes the parser unit test's dangling reference to a temporary source string.
  • Implements initial semantic checks for undeclared variables, duplicate variables/parameters, nested scope boundaries, forward references to global variables and enum constants, void/non-void return-value validation, undeclared function calls, function-call arity, break/continue placement, and return outside a function; adds targeted unit tests.
  • Adds CTest CLI smoke coverage for string and numeric output, generated C, paths containing spaces/apostrophes, missing source files, and invalid options.
  • Embeds the runtime helpers into generated C instead of emitting a machine-specific absolute include path; the smoke test now compiles and runs saved C from a standalone path.
  • Updates CI to run unit and CLI smoke tests through CTest.
  • Adds a compiler-status document and corrects the README's stale claim that the runtime source is missing.
  • Validates goto targets and rejects duplicate labels, keeping labels scoped to their own function; adds tests for valid, missing, duplicate, and cross-function targets.
  • Rejects duplicate function definitions while permitting prototypes followed by one definition.

Verification

GitHub Actions passes on the current PR head (run 40251372567): build, semantic-analysis unit tests, and CLI smoke tests succeeded, including goto/label validation and duplicate function-definition diagnostics. The shared capability-matrix correction is included in Numlang PR #20.

The full differential-test migration and deeper semantic analysis (type compatibility, parameter types, lvalue validity, and complete return-path analysis) remain outstanding and tracked in issue #14.

@ewanc26
ewanc26 merged commit 97f15dd into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant