Repository navigation
clangd checks the game's code and trusts the framework's; Windows clang builds with Visual Studio's clang - #61
Merged
Merged
Conversation
…11-21): one .clangd, the desktop debug build's database on every machine; include/rmp, src/rmp, thirdparty, raymob and ios give completion and declarations and report nothing, run no clang-tidy and index no source; -Werror left out, gcc's flags and an STL newer than clangd (STL1000) no error in the editor. The Android database scripts (generate_android_commands, update_clangd) are gone. ClangdConfigTest holds the line, seen red on a pattern too wide and one that names nothing. And the windows x64-clang job builds with Visual Studio's own clang: the image of 2026-11-16 brought MSVC 14.52, whose STL refuses the runner's LLVM 20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed, and why
clangd (Omar, 2026-11-21). Omar asked that clangd stop reporting errors in
rmp/while completion still works, and that the root scripts for the Android database go. This PR does that with one.clangd, copied into every game as before.What
.clangddoes now:build/debug) on every machine, as before.-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH, so a Visual Studio STL newer than the clangd reading it does not make every file that includes it fail withSTL1000;-Wno-unknown-warning-option;-Werrorand-Werror=*, so a warning in the game is a warning, not an error;include/rmp/,src/rmp/,thirdparty/,raymob/,ios/,tests/smoke_test.h):Diagnostics: Suppress: "*", no clang-tidy, no include cleaner,Index: Background: Skip. Completion, hover and go-to-declaration into them still work, because they come from the headers the game includes.src/main.cpp,src/scenes/,src/objects/,include/<game>,tests/game/, and the framework's examples and tests) are diagnosed as the compiler would.generate_android_commands.{sh,ps1}andupdate_clangd.{sh,ps1}are deleted, together with their lines inINCLUDE(tools/rmp.py) and inTECHNICAL.md.TECHNICAL.md's "Editor / clangd" section says what is above, andCLAUDE.mdrecords the decision under Omar's standing rules.CI:
windows / x64-clangwas red onmain(19 and 20 Nov). GitHub'swindows-2025-vs2026image of 2026-11-16 brought MSVC 14.52, whoseyvals_core.hstops aterror STL1000: Unexpected compiler version, expected Clang 22 or newerunder the runner's LLVM 20.1.8 inC:\Program Files\LLVM. The PR runs of 20 Nov went green only because they still got the 2026-11-03 image. The job now puts Visual Studio's own clang first onPATH: it finds VS withvswhere, requiringMicrosoft.VisualStudio.Component.VC.Llvm.Clang, and usesVC\Tools\Llvm\x64\bin, the clang that STL ships with. It prints both versions, and fails with a sentence if the component orclang++.exeis missing.The ladder
--checkon a planted error insrc/rmp/scene/collision.cpp.clangd:[undeclared_var_use] Line 1368; new: 0 diagnosticssrc/scenes/.clangdsrc/scenes/-Werror); new: not an errorsrc/scenes,src/main.cpp,src/rmp/...,include/rmp/ui.h,rcore.c, an examplebuild/debugpython3 -m unittest tests.rmp_test.ClangdConfigTestrmp test workflows,rmp,repo,portable,namingwindows / x64-clangwith Visual Studio's clangmain(windows-2025-vs202620261116.315.1)linux / riscv64-native(dispatch 44929388390,-f targets=linux-riscv64-glibc, same tree)rise-riscv-runner-tyi58um3h, kernel 5.10.113-scw1Seen red first
ClangdConfigTest:src/.*, it fails onsrc/main.cpp,src/scenes/...andsrc/objects/...;iosx/.*), it fails withiosx/.* matches nothing the repository tracks.src/rmp/showed with the old.clangd, as in the first row of the ladder.Not verified
rmp build, clangd has no flags at all, andrmp/...is not found in any file. That is unchanged, and.clangdandTECHNICAL.mdsay to build once.Checklist
rmp fmt checkis clean (no C++ changed).rmp lintis clean (no C++ changed).rmp testpasses: the stages it touches pass locally (above); the rest are in the PR's CI.rmp test examples,sanitize,fuzz,coverage: not applicable.TECHNICAL.md.CLAUDE.mdwith Omar's own decision of 2026-11-21.Generated by Claude Code