header_guards.py
fails if file is too short
#98813
Labels
Milestone
header_guards.py
fails if file is too short
#98813
Tested versions
4.4 1bffd6c
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
I created a new file, applied
copyright_headers.py
and triedheader_guards.py
, but it failed withThe script expects guards at specific line, but if file is too short, it goes out of bounds.
Steps to reproduce
.h
file in Godot source directorypython misc/scripts/header_guards.py path/to/that/file.h
Minimal reproduction project (MRP)
https://github.com/godotengine/godot/archive/refs/heads/master.zip
The text was updated successfully, but these errors were encountered: