move .clang-format to root, fix ida types in cleanup script

This commit is contained in:
fatalis 2022-08-13 06:17:25 -05:00
parent 308a0238ec
commit 2fa7c319f6
2 changed files with 8 additions and 5 deletions

View File

@ -6,6 +6,8 @@ from shutil import which
data = pyperclip.paste()
# TODO: with a little more effort we can fix ghidra's "-1 < var" too
replaces = {
# ghidra
'undefined4': 'int',
@ -16,11 +18,12 @@ replaces = {
'byte': 'unsigned char',
# ida
'BYTE': 'unsigned char',
'QWORD': 'unsigned long long',
'DWORD': 'unsigned int',
'WORD': 'unsigned short',
}
'_BYTE': 'unsigned char',
'_QWORD': 'unsigned long long',
'_DWORD': 'unsigned int',
'_WORD': 'unsigned short',
'__int8': 'char',
'__int16': 'short',
for fromm, to in replaces.items():
data = data.replace(fromm, to)