From 1a3f6b6a726283879869f9b103d2584f953ff83e Mon Sep 17 00:00:00 2001 From: Fr0zka Date: Mon, 27 Jul 2026 16:46:18 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20same=20stray-brace=20error=20as=207cd2be?= =?UTF-8?q?d=20=E2=80=94=20and=20label=20the=20boundary=20so=20it=20stops?= =?UTF-8?q?=20recurring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I anchored on the FACTORIES banner again, which sits after the anonymous namespace's closing brace, so FBiomeBlendHeightSource landed at file scope and the `}` added with it closed nothing. Identical to 7cd2bed, in the same file, for the identical reason. Removed the early closer so the class keeps internal linkage with the other six. The root cause is that the closing brace was unlabelled, so it reads as noise when scanning for an insertion point. Both op files now mark it explicitly with what goes above and what happens if you insert below. Cheap, and it turns a repeatable mistake into a visible one. Co-Authored-By: Claude Opus 5 --- Source/VoxelForge/Private/VoxelDensityOpStack.cpp | 7 ++++++- Source/VoxelForge/Private/VoxelHeightOpStack.cpp | 11 ++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Source/VoxelForge/Private/VoxelDensityOpStack.cpp b/Source/VoxelForge/Private/VoxelDensityOpStack.cpp index 8c92c0e..d3f8115 100644 --- a/Source/VoxelForge/Private/VoxelDensityOpStack.cpp +++ b/Source/VoxelForge/Private/VoxelDensityOpStack.cpp @@ -994,7 +994,12 @@ namespace const UVoxelStrateManager* Manager; float Base, Seal; }; -} + +} // ⚠️ FIN DU NAMESPACE ANONYME — TOUT NOUVEL OPÉRATEUR SE MET AU-DESSUS DE CETTE LIGNE. + // Même piège que dans VoxelHeightOpStack.cpp : s'ancrer sur une bannière située plus bas + // (« FVoxelOpStack », « FABRIQUES ») insère la classe HORS du namespace anonyme, et l'accolade + // ajoutée avec elle ne ferme rien → C2059. + // END OF THE ANONYMOUS NAMESPACE — new operators go ABOVE this line. //============================================================================= // FVoxelOpStack diff --git a/Source/VoxelForge/Private/VoxelHeightOpStack.cpp b/Source/VoxelForge/Private/VoxelHeightOpStack.cpp index bc063ec..c434829 100644 --- a/Source/VoxelForge/Private/VoxelHeightOpStack.cpp +++ b/Source/VoxelForge/Private/VoxelHeightOpStack.cpp @@ -350,8 +350,6 @@ namespace FSurfaceGenerationParams P; uint32 SeedU; }; -} - //========================================================================= // COMBINER `Mask` — MÉLANGE DE BIOMES / BIOME BLEND @@ -410,7 +408,14 @@ namespace const IVoxelBiomeField* Field; bool bBlend = true; }; -} + +} // ⚠️ FIN DU NAMESPACE ANONYME — TOUT NOUVEL OPÉRATEUR SE MET AU-DESSUS DE CETTE LIGNE. + // En dessous commence `namespace VoxelHeightOps` (les fabriques). Y insérer une classe la sort + // de la liaison interne, et l'accolade qu'on ajoute avec elle ne ferme rien → C2059. Erreur + // commise DEUX fois (7cd2bed, puis à nouveau ici) en s'ancrant sur la bannière « FABRIQUES », + // qui est de l'autre côté de cette accolade. + // END OF THE ANONYMOUS NAMESPACE — new operators go ABOVE this line. Anchoring on the FACTORIES + // banner below puts them outside it, and the brace added with them closes nothing. //============================================================================= // FABRIQUES / FACTORIES