Add a warning not to edit the apc parsers header files

This commit is contained in:
Kovid Goyal
2018-07-20 09:45:05 +05:30
parent e7cc654bb4
commit ac4c819f57
2 changed files with 15 additions and 12 deletions

View File

@@ -227,6 +227,7 @@ static inline void
def write_header(text, path):
with open(path, 'w') as f:
print(f'// This file is generated by {__file__} do not edit!', file=f, end='\n\n')
print('#pragma once', file=f)
print(text, file=f)
subprocess.check_call(['clang-format', '-i', path])