Harry Gillanders

Results 6 issues of Harry Gillanders

…of `int` and `uint` literal values cause errors, when targeting Windows, when debug info generation is enabled. --- The value of a C enum's member can be a `CastExp` instead...

This PR implements all but three of the MSVC intrinsics listed here: https://web.archive.org/web/20240412171516/https://learn.microsoft.com/en-ie/cpp/intrinsics/alphabetical-listing-of-intrinsic-functions?view=msvc-170, and a handful of undocumented intrinsics. The three unimplemented intrinsics are `_AddressOfReturnAddress`, `__getcallerseflags`, and `_ReturnAddress`, because they...

A quick test case: In a C file, define `BitFlags` like: ```c typedef struct BitFlags { unsigned int _00 : 1; unsigned int _01 : 1; unsigned int _02 :...

In a fully set-up MSVC environment (e.g. an environment set-up by Visual Studio's `vcvarsall.bat`) with a target of AArch64 (`$Env:VSCMD_ARG_TGT_ARCH` == `arm64`) or ARM (`$Env:VSCMD_ARG_TGT_ARCH` == `arm`), LDC will set-up...

Spec PR: https://github.com/dlang/dlang.org/pull/3828 --- This PR adds an ImportC-specific `#pragma importc_ignore`. This pragma is used to ignore kinds of declarations and definitions with specific identifiers. This is for situations where...

This PR documents ImportC's `#pragma importc_ignore`, implemented by https://github.com/dlang/dmd/pull/16464. I'm marking this as a draft until https://github.com/dlang/dmd/pull/16464 is approved or rejected.

Waiting for DMD PR