Skip to content

Releases

v0.2.0

Choose a tag to compare

@prabhu prabhu released this 10 Nov 08:50
04481ad

edga 0.2.0 adds Windows binaries, exports much more of what the EDG front end resolved, and moves the front end to edgcpp/compiler 3c6b73b. The document is still schema edga/1: every new field is optional, so a reader of 0.1.1 output keeps working.

Windows

edga now builds with MSVC on Windows x86_64 and ARM64, and each release carries edga-windows-amd64.exe and edga-windows-arm64.exe, statically linked to the CRT. Windows targets are LLP64, so the fixtures whose types depend on size_t have their own expected output, and CI runs the golden tests on both architectures (#4, #11).

What the document gains

  • Inline asm statements carry their text, volatile and goto, and each operand's direction, constraint and expression, with clobbers and labels. Routines and variables with an asm label get asmName, the symbol the linker sees, such as glibc's __isoc23_strtol for strtol (#1).
  • The initialiser of a C++17 if, if constexpr or switch is exported as the statement's init; it was missing before. A declared zero-length array has zeroBound, so it can be told apart from an array of unknown bound (#5).
  • Lifetime and layout facts for memory-safety analysis: how long a temporary or a reference-extended object lives and which destructor ends it, lambda captures (by copy, by reference or init-capture), compound literals, flexible array members, and bit-field widths and bit offsets (#7).
  • A constant folded from an enumerator, and a case label, keep the enumerator's name and where it was declared, and a new enumerators table maps each file- and namespace-scope enumerator to its declaration. In C an enumerator's type is int, so this is the way back to the header that declared it (#10, #11).

Behaviour changes

  • A source file whose name is not a C++ one is compiled as C17 when no dialect option is given. Before, edga file.c compiled the file as C++, the front end's default. Tools that pass --c11, --gcc, --c++17 and so on, as chen does, are not affected (#13).
  • A #pragma diag_suppress with no argument or a trailing comma no longer swallows the rest of the file (upstream GH #203, #3).

EDG front end

The pin moves from 89e67e0 to 3c6b73b in three steps (#3, #8, #10, #13). Among the upstream fixes are constant evaluation of GNU vector objects, Core issue 616 in C++11 and GCC/Clang emulation modes, pack expansions in nested generic lambdas, lookup in default template arguments during partial specialisation, CWG 2355 noexcept deduction, and new diagnostics for comparisons between arrays (P2865).

Documentation

The README is rewritten around getting and running edga. New documents describe how EDG and edga work and compare EDG with Eclipse CDT (#6, #10), give a field reference for the JSON document (docs/json-format.md), and cover maintenance and releases (docs/maintaining.md) (#13).

For CI consumers

Each push to main also publishes its binaries to ghcr.io/appthreat/edga:main-<platform> with oras, which chen's and atom's CI pull to test against main (#2).

Assets

Static binaries for linux-amd64, linux-arm64, linuxmusl-amd64, linuxmusl-arm64, darwin-arm64, windows-amd64 and windows-arm64, each with a .sha256 file, and the CycloneDX SBOM sbom-edga.cdx.json, which records the EDG commit. The release workflow attaches them once its builds and golden tests finish on every platform.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 04 Oct 09:29
v0.1.1
ed81050

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 09:04
v0.1.0
e0bd1fa