refactor: [move-only] Merge core_io module

This can be reviewed with the git option
--color-moved=dimmed-zebra
This commit is contained in:
MarcoFalke
2026-01-14 23:50:40 +01:00
parent fa6947f491
commit faf66673ac
6 changed files with 261 additions and 279 deletions

View File

@@ -6,11 +6,6 @@
import sys
import re
MAPPING = {
'core_read.cpp': 'core_io.cpp',
'core_write.cpp': 'core_io.cpp',
}
# Directories with header-based modules, where the assumption that .cpp files
# define functions and variables declared in corresponding .h files is
# incorrect.
@@ -19,8 +14,6 @@ HEADER_MODULE_PATHS = [
]
def module_name(path):
if path in MAPPING:
path = MAPPING[path]
if any(path.startswith(dirpath) for dirpath in HEADER_MODULE_PATHS):
return path
if path.endswith(".h"):