From 91d849af658dbaa7fcddf13cfff309efd2e0df29 Mon Sep 17 00:00:00 2001 From: kotijekriv Date: Tue, 24 Nov 2026 11:29:41 +0100 Subject: [PATCH] cmake: function-visibility.txt entries for the /GL callers of #416, #433 and #438 #416, #433 and #438 put six callers on cmake/compiler-flags-gl.txt after #398 without an entry here: InGameMenu's MenuItemRenderFunction_InGameMenu_MainButtons and Roundtable's MenuItemActionHandler_Roundtable_Main (#416), UpdateGhost (#416), UpdateFireWatch and UpdateHunterDog (#433), and UpdateCageDog (#438). Each gets an entry at its address, its callees in address order. The /GL lines stay as they are. Each edge is measured as #398's were: the caller's file compiled with the callee files in its unit, against the caller alone, quick_diff on main 7c2e4d6785 with every function resolver that has a .cpp and every struct resolver on. The callees tried are the caller's /GL-listed callees below its address. A callee is listed when it raises the caller's ratio on its own, or when leaving it out of the full set lowers it; the listed set reads what the full set reads. - MainButtons: 0.8217 alone, 1.0000 with ButtonGmData::getPictureNumberInGm. - Roundtable_Main: 0.9391 alone, 0.9984 with GameSynchronyState::isAIPlayer. - UpdateFireWatch: 0.3834 alone, 0.9980 with checkIfCitizenUnitIsAliveBasedOnState and hasUnitReachedDestination, the same as with all four of its /GL callees; leaving one of the four out reads 0.7178 (checkIfCitizenUnitIsAliveBasedOnState) and 0.6606 (hasUnitReachedDestination). makeUnitStopWalkingByClearingPathProgressState and commitUnitLocation change nothing. - UpdateGhost: 0.5214 alone, 0.9712 with hasUnitReachedDestination. makeUnitStopWalkingByClearingPathProgressState changes nothing. - UpdateHunterDog: 0.3336 alone, 1.0000 with its four callees and with all five of its /GL callees; leaving one of the five out reads 0.9944 (makeUnitStopWalkingByClearingPathProgressState), 0.7283 (checkIfCitizenUnitIsAliveBasedOnState), 0.9298 (hasUnitReachedDestination), 0.9114 (hasTunnelerNotFinishedDigging). resumeMovementIfNoAttackTarget changes nothing. - UpdateCageDog: 0.2829 alone, 1.0000 with its four callees and with all seven of its /GL callees; leaving one of the seven out reads 0.8651 (makeUnitStopWalkingByClearingPathProgressState), 0.7162 (checkIfCitizenUnitIsAliveBasedOnState), 0.4142 (hasUnitReachedDestination), 0.9949 (tryAttackUnitID, which #438 added to the /GL list for it). buildingIsAccessible, resumeMovementIfNoAttackTarget and commitUnitLocation change nothing. #473 and #475 put UpdateSiegeTent and UpdateHorseArcher_DoShooting on the /GL list; neither calls a /GL-listed function, so neither gets an entry. UpdateHorseArcher calls UpdateHorseArcher_DoShooting, which sits below it, but reads worse with its body (0.9929 with hasUnitReachedDestination, 0.9906 with both), so its entry stays as it is. With every .cpp of main as the build list, cmake/function-visibility-units.py now makes 24 units holding 116 source files (108 before): the six callers, tryAttackUnitID and makeUnitStopWalkingByClearingPathProgressState join the existing groups. No internal names clash, and the 13 names it skips are the ones it skipped before. Co-Authored-By: Claude Opus 5.5 --- cmake/function-visibility.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cmake/function-visibility.txt b/cmake/function-visibility.txt index 4e605770b5..3f78b5d842 100644 --- a/cmake/function-visibility.txt +++ b/cmake/function-visibility.txt @@ -75,6 +75,8 @@ OpenSHC::UI::Rendering::RenderCurrentButtonOnScreenMenu OpenSHC::UI::Rendering::ButtonGmData::getPictureNumberInGm OpenSHC::UI::Rendering::RenderCurrentButtonToScreenMenuWithBlendingUnk OpenSHC::UI::Rendering::ButtonGmData::getPictureNumberInGm +OpenSHC::UI::MenuItems::InGameMenu::MenuItemRenderFunction_InGameMenu_MainButtons + OpenSHC::UI::Rendering::ButtonGmData::getPictureNumberInGm OpenSHC::UI::MenuItems::MapEditorLandscaping::MenuItemRenderFunction_MapEditorLandscaping_GeneralButtons OpenSHC::UI::Rendering::ButtonGmData::getPictureNumberInGm OpenSHC::UI::MenuItems::BuildingAndStatusMenu::MenuItemRenderFunction_BuildingAndStatusMenu_BarracksWeaponAvailability @@ -113,6 +115,8 @@ OpenSHC::Synchrony::GameSynchronyState::processSyncPacket OpenSHC::Synchrony::GameSynchronyState::translateMultiplayerIDsIntoPlayerIDs OpenSHC::Synchrony::GameSynchronyState::receiveAllTransmittedCommands OpenSHC::Synchrony::GameSynchronyState::translateMultiplayerIDsIntoPlayerIDs +OpenSHC::UI::MenuItems::Roundtable::MenuItemActionHandler_Roundtable_Main + OpenSHC::Synchrony::GameSynchronyState::isAIPlayer OpenSHC::Map::TileMapState::updateMoatCountdownTimers OpenSHC::Map::TileMapState::recountTotalOwnedMoats OpenSHC::UI::HoveredState::Constructor_HoveredState @@ -136,6 +140,11 @@ OpenSHC::Map::Units::UpdateMerchant OpenSHC::Map::Units::UpdateMerchantHorse OpenSHC::Map::Units::UnitsState::checkIfCitizenUnitIsAliveBasedOnState OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination +OpenSHC::Map::Units::UpdateFireWatch + OpenSHC::Map::Units::UnitsState::checkIfCitizenUnitIsAliveBasedOnState + OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination +OpenSHC::Map::Units::UpdateGhost + OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination OpenSHC::Map::Units::UpdateLady OpenSHC::Map::Units::UnitsState::makeUnitStopWalkingByClearingPathProgressState OpenSHC::Map::Units::UnitsState::checkIfCitizenUnitIsAliveBasedOnState @@ -199,9 +208,19 @@ OpenSHC::Map::Units::UpdateTrebuchet OpenSHC::Map::Units::UpdateMangonel OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination OpenSHC::Map::Units::UnitsState::deselectUnit +OpenSHC::Map::Units::UpdateHunterDog + OpenSHC::Map::Units::UnitsState::makeUnitStopWalkingByClearingPathProgressState + OpenSHC::Map::Units::UnitsState::checkIfCitizenUnitIsAliveBasedOnState + OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination + OpenSHC::Map::Units::UnitsState::hasTunnelerNotFinishedDigging OpenSHC::Map::Units::UpdateBallista OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination OpenSHC::Map::Units::UnitsState::deselectUnit +OpenSHC::Map::Units::UpdateCageDog + OpenSHC::Map::Units::UnitsState::makeUnitStopWalkingByClearingPathProgressState + OpenSHC::Map::Units::UnitsState::checkIfCitizenUnitIsAliveBasedOnState + OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination + OpenSHC::Map::Units::UnitsState::tryAttackUnitID OpenSHC::Map::Units::UpdateSlave OpenSHC::Map::Units::UnitsState::hasUnitReachedDestination OpenSHC::Map::Units::UpdateAssassin