Thread overview
DMD CI Dscanner gives false positive for asm statement
Nov 14
user1234
November 14

At https://buildkite.com/dlang/dmd/builds/28891#01847622-70c7-4535-b307-ab65a1d035ad dscanner gives a false negative inside the asm statement in compiler/src/dmd/queryperf.d added at https://github.com/dlang/dmd/pull/14635/files#diff-2e59fbdb3511b31cf82d44af0b71072b5db847db2f2982e1d5151a9bb0e7c691. How to alleviate?

I wanted to post this in DMD but I get the error

SMTP error: Connection refused

so trying in General instead.

November 14

On Monday, 14 November 2022 at 12:56:52 UTC, Per Nordlöw wrote:

>

At https://buildkite.com/dlang/dmd/builds/28891#01847622-70c7-4535-b307-ab65a1d035ad dscanner gives a false negative inside the asm statement in compiler/src/dmd/queryperf.d added at https://github.com/dlang/dmd/pull/14635/files#diff-2e59fbdb3511b31cf82d44af0b71072b5db847db2f2982e1d5151a9bb0e7c691. How to alleviate?

I wanted to post this in DMD but I get the error

SMTP error: Connection refused

so trying in General instead.

I see, it's https://buildkite.com/dlang/dmd/builds/28891#01847622-70c7-4535-b307-ab65a1d035ad/251-1867.

This requires a dscanner fix. In the meantime you can try to to deactivate the check. There should be a dscanner.ini somewhere where you can do that.

November 14

On Monday, 14 November 2022 at 13:40:24 UTC, user1234 wrote:

>

This requires a dscanner fix. In the meantime you can try to to deactivate the check. There should be a dscanner.ini somewhere where you can do that.

Shall I disable it completely or a specific option in dscanner.ini?

November 14

On Monday, 14 November 2022 at 17:32:55 UTC, Per Nordlöw wrote:

>

On Monday, 14 November 2022 at 13:40:24 UTC, user1234 wrote:

>

This requires a dscanner fix. In the meantime you can try to to deactivate the check. There should be a dscanner.ini somewhere where you can do that.

Shall I disable it completely or a specific option in dscanner.ini?

I discovered how adjust the syntax to please dscanner. See https://github.com/dlang/dmd/pull/14635/commits/6f1b5ee7a1e95badfd793f6c1f4935e004ea1c3a for details