Repository navigation
server 0.24.1, vscode 0.24.1: MSVC STL units keep aligned allocation on the maintained engine (#97), and S1 0.4.0 ide.generated origin (was #98) - #99
Merged
Conversation
…ocation under the MSVC STL, so std::align_val_t is declared (#97) A header that uses aligned allocation as C++17 allows (Slint 1.19's vtable.h) failed in the editor only, with "no type named 'align_val_t' in namespace 'std'", and every module including it "did not compile". WA-CLANGD-005 gave every MSVC STL unit -fno-aligned-allocation for llvm-project#218152 (align_val_t ambiguous in the MSVC STL's std module in clang 23.1.0). The flag also removes __cpp_aligned_new, and vcruntime_new.h then declares neither std::align_val_t nor the aligned operator new/delete. The maintained engine has carried the upstream fix (llvm-project#219151, patch 0001-UP-05) in every release, but the workaround was retired by the LLVM base version, which 23.1.0-mcppls.<n> keeps. The register now marks it fixed in the maintained engine (fixedInMaintained), so MSVC STL units keep aligned allocation, as the build does. Where it still applies (an upstream 23.1.0 clangd), the workaround also defines __cpp_aligned_new=201606L, kept for std too, so the library declares what such headers use. Design: .agents/docs/2026-11-23-issue-97-msvc-aligned-allocation-design.md
…g it for navigation (S1-7.2-15, pending), each rule with its evidence S1 0.4.0 put two requirements under one identifier and gave its new rules no evidence, so validate.py failed. S1-7.2-14 is a producer rule (mcpp#1006); S1-7.2-15 waits for issue 95's G3; S1-7.2-16 is issue 95's G1, now tested with a stated origin.
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.
Fixes #97. Design:
.agents/docs/2026-11-23-issue-97-msvc-aligned-allocation-design.md.The defect is mcppls's
WA-CLANGD-005adds-fno-aligned-allocationto every MSVC STL unit. It was added for llvm-project#218152, which madealign_val_tambiguous in the MSVC STLstdmodule on clang 23.1.0. The flag has a side effect: clang no longer defines__cpp_aligned_new, sovcruntime_new.hdropsstd::align_val_tand the alignedoperator new/delete. Conforming headers that use them unconditionally then fail, but only in clangd. Slint 1.19'svtable.his one; the project itself builds.The bundled engine never needed the workaround:
patches/0001-UP-05) in every release since v0.0.2.fixedIn = "23.1.1"). The engine reports23.1.0-mcppls.12, so the workaround was never retired.Changes (server only; no engine or Slint change)
fixedInMaintained.WA-CLANGD-005is, so MSVC STL units keep aligned allocation on the maintained engine, as the real build does.mcppls.clangd), it now also defines-D__cpp_aligned_new=201606L. Thestdunit keeps the macro too. The macro is not added when the build itself turns aligned new off (/Zc:alignedNew-).Evidence
std.ixx-shaped module plus avtable.h-shaped importer):-fno-aligned-allocationreproduces the report's error./Zc:alignedNew-.mcpp-msvc-aligned-new:llvm@23.1.3+ MSVC STL, a header shaped likevtable.hin a module and inmain.cpp, both importingstd. It checks that both files have no diagnostics and that the engine command has no-fno-aligned-allocation. The existingmcpp-msvc,mcpp-llvm-msvcandcmake-msvc-stdnow buildstdwithout the flag.mcpp test630/630,devtools check all,validate.py, and a cross-build forx86_64-windows-gnu. The real MSVC STL is proved only by the Windows CI fixtures.Also carried: S1 0.4.0 (was #98)
Carried here so the two run on one CI. The original commit is kept, and one commit follows it:
originon asourceentry ofide.generated. A producer may write it, and must not infer it (S1-7.2-14). The producer side is emit build-database: a generated source does not say which authored file it is a transformed copy of (S1 ide.generated names it only among inputs) mcpp-community/mcpp#1004 / #1006.validate.py, because one identifier carried two requirements and the new rules had no evidence. The follow-up splits the consumer rule:originis not a second provider. Issue 95's G1 already does this; it is now tested with a stated origin.validate.pyreports 0 failures.