dmd D Programming Language compiler
This report summarizes scanner evidence for dlang/dmd, a D project with 3,332 GitHub stars. SynthScan examined 87,621 lines of code across 653 source files, recording 68 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 68 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 68 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 68 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | druntime/test/shared/src/host.c | 1 | #include <stdlib.h> | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 1 | #define __alignof__ _Alignof | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 21 | #endif | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 41 | #if __has_include(<semaphore.h>) | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 61 | #endif | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 81 | #if __has_include(<sys/ipc.h>) | COMMENT |
| LOW | druntime/test/importc_compare/src/importc_includes.c | 101 | #endif | COMMENT |
| LOW | druntime/src/importc.h | 81 | #ifndef _WCHAR_T_DEFINED | COMMENT |
| LOW | druntime/src/importc.h | 101 | * DMC-specific extensions, https://digitalmars.com/ctg/pointers16.html | COMMENT |
| LOW | druntime/src/importc.h | 141 | #define __builtin___strcat_chk(dest, src, x) strcat(dest,src) | COMMENT |
| LOW | druntime/src/importc.h | 161 | // then undefing __sym_compat, the normal __sym_compat gets used. | COMMENT |
| LOW | druntime/src/importc.h | 201 | COMMENT | |
| LOW | druntime/src/importc.h | 221 | #endif // __linux__ || __GNU__ | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 21 | Denoting unreachable code is the more important duty, | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 61 | #pragma function_decl(ignore, _disable, _enable) | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 81 | COMMENT | |
| LOW | druntime/src/include/importc_msvc_builtins.h | 101 | #pragma function_decl(ignore, _cvt_dtoi_sat, _cvt_dtoll_sat, _cvt_dtoui_sat, _cvt_dtoull_sat, _cvt_ftoi_sent, _cvt_ftoll | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 121 | #pragma function_decl(ignore, __sidt) | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 141 | #pragma function_decl(ignore, __lzcnt64, _lzcnt_u64, _tzcnt_u64) | COMMENT |
| LOW | druntime/src/include/importc_msvc_builtins.h | 161 | #pragma function_decl(ignore, _InterlockedAnd_acq, _InterlockedAnd_rel, _InterlockedAnd_nf, _InterlockedAnd8_acq, _Inter | COMMENT |
| LOW | druntime/src/etc/valgrind/valgrind.h | 121 | #undef PLAT_ppc64le_linux | COMMENT |
| LOW | druntime/src/etc/valgrind/valgrind.h | 141 | || defined(__CYGWIN32__) \ | COMMENT |
| LOW | druntime/src/etc/valgrind/valgrind.h | 161 | # define PLAT_arm_linux 1 | COMMENT |
| LOW | druntime/src/etc/valgrind/valgrind.h | 7141 | Note that unknown or not dynamically changeable options | COMMENT |
| LOW | druntime/src/etc/valgrind/valgrind.h | 7161 | #undef PLAT_nanomips_linux | COMMENT |
| LOW | .github/workflows/release.yml | 1 | # GitHub Action to build releases on command | COMMENT |
| LOW | .github/workflows/nightlies.yml | 1 | # Github Action to build nightly releases | COMMENT |
| LOW | .github/workflows/runnable_cxx.yml | 1 | # Github action to test for C++ interoperability | COMMENT |
| LOW | …l_compilation/importc_pragma_construct_consideration.c | 1 | COMMENT | |
| LOW | …st/runnable/importc_pragma_construct_consideration_c.c | 1 | // EXTRA_SOURCES: imports/importc_pragma_construct_consideration.d | COMMENT |
| LOW | compiler/test/runnable/test_switches.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | compiler/test/compilable/msvc_intrinsics.c | 1 | // DISABLED: osx linux freebsd openbsd netbsd dragonflybsd hurd | COMMENT |
| LOW | compiler/test/compilable/stdcheaders.c | 1 | /* Do a smoke test of the C Standard headers. | COMMENT |
| LOW | compiler/test/compilable/stdcheaders.c | 21 | COMMENT | |
| LOW | compiler/test/compilable/stdcheaders.c | 41 | #ifndef __APPLE__ // /Applications/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang | COMMENT |
| LOW | compiler/test/compilable/stdcheaders.c | 61 | #ifndef __clang__ | COMMENT |
| LOW | compiler/test/compilable/stdcheaders.c | 81 | #ifndef __APPLE__ // no uchar.h | COMMENT |
| LOW | compiler/test/compilable/pragmapack.c | 61 | char a; | COMMENT |
| LOW | compiler/test/compilable/pragmapack.c | 81 | #pragma pack(pop,a) | COMMENT |
| LOW | compiler/test/compilable/test21246.c | 1 | // https://github.com/dlang/dmd/issues/21246 | COMMENT |
| LOW | compiler/test/compilable/imports/imp20344.c | 1 | // https://github.com/dlang/dmd/issues/20334 | COMMENT |
| LOW | compiler/test/compilable/imports/defines.c | 21 | #define F64 8.0f | COMMENT |
| LOW | compiler/test/compilable/imports/defines.c | 41 | #define pr16199_trigger(cond,func,args) _Generic (cond, default: func args) | COMMENT |
| LOW | compiler/test/compilable/imports/defines.c | 61 | #define NEGATIVE_U32 -2U | COMMENT |
| LOW | compiler/include/dmd/declaration.h | 61 | #define STCparameter 0x20ULL /// is function parameter | COMMENT |
| LOW | compiler/include/dmd/declaration.h | 81 | #define STCreturn 0x200000ULL /// 'return ref' or 'return scope' for function parameters | COMMENT |
| LOW | compiler/include/dmd/declaration.h | 101 | #define STCtrusted 0x4000000000ULL /// `@trusted` | COMMENT |
| LOW | compiler/include/dmd/root/dcompat.h | 41 | typedef unsigned d_size_t; | COMMENT |
| LOW | compiler/include/dmd/root/dsystem.h | 21 | COMMENT | |
| LOW | compiler/include/dmd/root/longdouble.h | 221 | #undef LDBL_MIN | COMMENT |
| LOW | compiler/src/vcbuild/warnings.h | 1 | #pragma warning(disable:4996) // This function or variable may be unsafe. | COMMENT |
| LOW | compiler/src/vcbuild/warnings.h | 21 | #pragma warning(disable:4305) // 'initializing' : truncation from 'double' to 'float' | COMMENT |
| LOW | compiler/src/vcbuild/warnings.h | 41 | #define __pascal | COMMENT |
| LOW | compiler/src/vcbuild/stdint.h | 61 | #ifndef _INTPTR_T_DEFINED | COMMENT |
| LOW | compiler/src/vcbuild/stdint.h | 81 | typedef unsigned long long uintmax_t; | COMMENT |
| LOW | compiler/src/vcbuild/stdint.h | 101 | COMMENT | |
| LOW | compiler/src/vcbuild/stdint.h | 121 | #define INT_FAST32_MIN INT32_MIN | COMMENT |
| LOW | compiler/src/vcbuild/stdint.h | 141 | #define INTPTR_MIN INT32_MIN | COMMENT |
| LOW | compiler/src/vcbuild/stdint.h | 201 | #define INTMAX_C(val) INT64_C(val) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ci/cirrusci.sh | 4 | # This file is invoked from the DMD and Phobos CI YAMLs | COMMENT |
| MEDIUM | ci/run.sh | 4 | # This file is invoked from the DMD and Phobos CI YAMLs. | COMMENT |
| MEDIUM | .github/workflows/release.yml | 73 | # Create the new release using the downloaded artifacts | COMMENT |
| MEDIUM | .github/workflows/nightlies.yml | 83 | # Create the new release using the downloaded artifacts | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/runnable_cxx.yml | 6 | # but becomes problematic when we want to test more cutting-edge features, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler/tools/gen_cpp_layout_test.py | 212 | CODE | |
| LOW | compiler/tools/gen_cpp_layout_test.py | 248 | CODE | |
| LOW | compiler/tools/gen_cpp_layout_test.py | 457 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/runnable_cxx.yml | 14 | # - When debugging/troubleshooting, make sure to check the printed compiler versions. | COMMENT |