From 560fbe70cefeefbcf72e7fecd3ccf52daeea9a85 Mon Sep 17 00:00:00 2001 From: Guus Waals <_@guusw.nl> Date: Thu, 29 May 2025 15:46:15 +0800 Subject: [PATCH] Ignore refs from tooling duplicate check --- tooling/tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/tool.cpp b/tooling/tool.cpp index 1d2ea81a..fcb0560f 100644 --- a/tooling/tool.cpp +++ b/tooling/tool.cpp @@ -231,7 +231,7 @@ public: bool checkDuplicateAddresses() { const char *sql = R"( WITH all_addresses AS ( - SELECT 'Functions' as table_name, name, address, filepath FROM Functions WHERE address != '' + SELECT 'Functions' as table_name, name, address, filepath FROM Functions WHERE address != '' AND type != 3 UNION ALL SELECT 'Globals' as table_name, name, address, filepath FROM Globals WHERE address != '' ) @@ -273,6 +273,7 @@ public: SELECT name, COUNT(*) as count, GROUP_CONCAT(filepath, '; ') as filepaths FROM Functions + WHERE type != 3 GROUP BY name HAVING COUNT(*) > 1 ORDER BY name;