Style: Integrate #pragma once in builders/checks

This commit is contained in:
Thaddeus Crews 2025-02-01 10:11:55 -06:00
parent 7459a0361d
commit 96fdaa616b
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
17 changed files with 44 additions and 197 deletions

View file

@ -106,8 +106,7 @@ def generate_char_range_inc() -> None:
source += f"""
// This file was generated using the `misc/scripts/char_range_fetch.py` script.
#ifndef CHAR_RANGE_INC
#define CHAR_RANGE_INC
#pragma once
#include "core/typedefs.h"
@ -125,8 +124,6 @@ struct CharRange {{
source += make_array("lowercase_letter", lowercase_letter)
source += make_array("unicode_letter", unicode_letter)
source += "#endif // CHAR_RANGE_INC\n"
char_range_path: str = os.path.join(os.path.dirname(__file__), "../../core/string/char_range.inc")
with open(char_range_path, "w", newline="\n") as f:
f.write(source)