new enums

This commit is contained in:
Erik Frojdh
2019-11-05 10:20:25 +01:00
parent 40572b6b23
commit b3587bcee5
2 changed files with 338 additions and 296 deletions

View File

@ -1,4 +1,5 @@
import re
import subprocess
def comment_remover(text):
def replacer(match):
@ -61,3 +62,7 @@ warning = '/* WARINING This file is auto generated any edits might be overwritte
with open('../src/enums.cpp', 'w') as f:
f.write(warning)
f.write(text)
# clang-format ../src/enums.cpp -i
subprocess.run(['clang-format', '../src/enums.cpp', '-i'])