Ignore refs from tooling duplicate check

This commit is contained in:
Guus Waals 2025-05-29 15:46:15 +08:00
parent db228e64ec
commit 560fbe70ce
1 changed files with 2 additions and 1 deletions

View File

@ -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;