The second of two pull requests. Qodana for .NET - whose C++ is ReSharper C++ - is the only linter of JetBrains' that
can read this code: it is MSVC-only, and qodana-cpp and qodana-clang are Linux images. It reads C++ through a Visual
Studio solution, and src/native is a CMake tree, so the job has CMake write one.
The job
- src/native/CMakePresets.json: the preset x64-vs-analysis (generator "Visual Studio 18 2026", tests and tools on).
Nothing ships from it, and the gate and the release never use it.
- qodana-native.yaml: the solution, RelWithDebInfo and x64; the build tree, third_party, the vendor stubs and a
compiled shader left out by path; a gate of zero.
- qodana.yml: the job `native` - configure, build the one target whose output is a header (the blocklist floor), then
the action with --config qodana-native.yaml. Its own results folder, cache keys, artifact (qodana-report-native)
and Qodana Cloud project (frameledger-cpp, QODANA_TOKEN_NATIVE). No comment and no annotations: the pull request's
are the managed job's. Advisory.
What its first run reported, and what was done (docs/13_CI_CD.md, section Qodana)
- 4,695 problems, 4,040 of them hints (off, as on the managed side). Of the 655 left, 494 are distinct: a file
compiled into three targets is reported three times.
- Off in .editorconfig, each with its reason - every clang-tidy check and clang diagnostic the engine runs has a key
of ReSharper's, so no .clang-tidy file is added:
278 a choice this code made (struct padding, MSVC's keywords, a function pointer got by name cast to its type,
"can be const / constexpr / static", an #include of what the file uses);
53 a newer idiom proposed for working code;
25 the engine misreading std::atomic_ref, zero-initialised API structures and tests of constexpr functions;
25 fields nothing names in structures Windows defines (four files);
19 %lu with NvU32 in one probe - unsigned int only under clang, the linter's compiler;
78 what a probe or a test does on purpose (tools and tests);
7 in code loaded into a game, kept as it is.
- Fixed, 11, none changing what a shipped binary does: std::size for four hand-written array lengths; two
multiplications done in a narrower type than their result (a constant in the guard's sources, a test); two unused
member functions, an unused type alias and two unused includes in the tests and the probes.
Code loaded into a game - the Overlay, the Vulkan layer, the shared-memory headers, the guard's rule matcher - is not
changed (D100: there only a defect is fixed, and the report found none). One thing there is not as it should be and
is RECORDED, not removed: dllmain.cpp's LogNoteW, which nothing calls. .editorconfig leaves that one file unread for
an unused function, in a section that says to remove it with the function; whether it goes is the owner's call
(HANDOFF).
"Zero" proved to mean "analysed": a branch that put back three of the things fixed here was reported with exactly
those three, by the inspections that had found them (run 42942390715).
Runs on this branch: 42942068024 (one problem left: LogNoteW), 42943094415 (none).
Docs: 13_CI_CD (the native report), 12_BUILD (the preset), CLAUDE.md (the layout, the C++ conventions), HANDOFF,
wiki/Releasing, CHANGELOG.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>