master
Commits on Jun 12, 2021
Commits on Jun 11, 2021
-
dtoh: Emit enum declarations to
donebufinstead offwdbuf...... because the latter is intended for pure forward declarations. This simplifies the code and makes the header generation more clear.
-
Nightlies: Update release instead of tagging a new one (#12669)
Re-tagging the nighlty release for every build has two disadvantages: - each build triggers a github notification - `git fetch --tags` complains about a modified tag This patch changes the nightly build s.t. it reuses the existing release and simply updates the associated assets + description. This means that the implicit timestamp + revision will be outdated. Therefore I#ve modified the description to include the revision of each repo.
-
CirrusCi: merge pull requests with target branch (#12667)
Co-authored-by: Sebastian Wilzbach <seb@wilzba.ch>
-
Disable Github actions workflows for forks
Don't waste resources for each fork
-
Merge pull request #12653 from MoonlightSentinel/dtoh-context
dtoh: Handle D symbols referenced from exported symbols Signed-off-by: Iain Buclaw <ibuclaw@users.noreply.github.com> Merged-on-behalf-of: Iain Buclaw <ibuclaw@users.noreply.github.com>
Commits on Jun 10, 2021
Commits on Jun 9, 2021
-
cpp_header_gen.d: Dump generated header on failure
S.t. one can inspect the generated declarations
-
dtoh: Consolidate symbol emission logic into a dedicated function.
Reduces the duplication between the various `visit` implementations for user-defined types and allows `includeSymbol` to force the emission if a type is referenced by another symbol (instead of accidentally emitting them because `linkage` wasn't reset).
-
dtoh: Hide checkbuf behind a dedicated debug condition (#12661)
* dtoh: Pass temporary buffer instead of C string Avoids a redundant call to toDstring for every included symbol * dtoh: Hide checkbuf behind a dedicated debug condition Some asserts were generated in a non-debug build but discarded at the end because `checkbuf` wasn't included in the final header. Hiding all validation logic behind a dedicated `debug` condition stops this waste of time/memory and and lets one enable those `assert´s without the logging.
-
dtoh: Handle missing elements in StructLiteralDeclarations
`StructLiteralDeclarations.elements` mirrors `StructDeclaration.fields` and hence may contain `null` elements to signify that there was no corresponding value. This is especially problematic for `union`'s which are initialized to the value of the first field (all other elements are `null`).
-
dtoh: Move context specific attributes into a dedicated struct
The attributes of the visitor currently store information about the entire header as well as the current position inside the AST. Seperating the the latter into a dedicated struct highlights their purpose and can be used to reduce the boilerplate in `includeSymbol` (which has to temporarily reset those fields).
-
-
-
-
fix Issue 22007 - static foreach: cannot implicitly convert expressio…
…n Tuple4(0LU, 1) of type Tuple4 to int (#12652)
Commits on Jun 8, 2021
-
dtoh: Make implementation private and add some DDOC (#12649)
Also moved several utility methods s.t. the public interface is at the beginning of the file
-
Commits on Jun 7, 2021
-
-
-
dtoh: Don't assert when handling complex and imaginary types (#12068)
* dtoh: Don't assert when handling complex and imaginary types * Fixup initial commit Co-authored-by: MoonlightSentinel <moonlightsentinel@disroot.org>
-
Fix 21997 - Support reinterpreting cast when switching attributes in...
... both directions Signed-off-by: Luís Ferreira <contact@lsferreira.net>