Skip to content
Permalink
master

Commits on Jun 11, 2021

  1. dtoh: Emit enum declarations to donebuf instead of fwdbuf...

    ... because the latter is intended for pure forward declarations.
    This simplifies the code and makes the header generation more clear.
    MoonlightSentinel committed Jun 11, 2021
  2. 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.
    MoonlightSentinel committed Jun 11, 2021
  3. CirrusCi: merge pull requests with target branch (#12667)

    Co-authored-by: Sebastian Wilzbach <seb@wilzba.ch>
    MoonlightSentinel and wilzbach committed Jun 11, 2021
  4. Disable Github actions workflows for forks

    Don't waste resources for each fork
    MoonlightSentinel authored and Geod24 committed Jun 11, 2021
  5. 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>
    dlang-bot committed Jun 11, 2021

Commits on Jun 9, 2021

  1. cpp_header_gen.d: Dump generated header on failure

    S.t. one can inspect the generated declarations
    MoonlightSentinel committed Jun 9, 2021
  2. 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).
    MoonlightSentinel committed Jun 9, 2021
  3. 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.
    MoonlightSentinel committed Jun 9, 2021
  4. 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`).
    MoonlightSentinel authored and dlang-bot committed Jun 9, 2021
  5. 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).
    MoonlightSentinel authored and dlang-bot committed Jun 9, 2021
  6. fix Issue 22007 - static foreach: cannot implicitly convert expressio…

    …n Tuple4(0LU, 1) of type Tuple4 to int (#12652)
    ibuclaw committed Jun 9, 2021

Commits on Jun 8, 2021

  1. 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
    MoonlightSentinel committed Jun 8, 2021

Commits on Jun 7, 2021

  1. 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>
    ibuclaw and MoonlightSentinel committed Jun 7, 2021
  2. Fix 21997 - Support reinterpreting cast when switching attributes in...

    ... both directions
    
    Signed-off-by: Luís Ferreira <contact@lsferreira.net>
    ljmf00 authored and thewilsonator committed Jun 7, 2021

Commits on Jun 4, 2021

Older