Repository navigation
Releases
v0.2.0
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
asmstatements carry their text,volatileandgoto, and each operand's direction, constraint and expression, with clobbers and labels. Routines and variables with an asm label getasmName, the symbol the linker sees, such as glibc's__isoc23_strtolforstrtol(#1). - The initialiser of a C++17
if,if constexprorswitchis exported as the statement'sinit; it was missing before. A declared zero-length array haszeroBound, 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
caselabel, keep the enumerator's name and where it was declared, and a newenumeratorstable maps each file- and namespace-scope enumerator to its declaration. In C an enumerator's type isint, 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.ccompiled the file as C++, the front end's default. Tools that pass--c11,--gcc,--c++17and so on, as chen does, are not affected (#13). - A
#pragma diag_suppresswith 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
v0.1.0
Full Changelog: https://github.com/AppThreat/edga/commits/v0.1.0