Code quality: Fix header guards consistency

Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
This commit is contained in:
Rémi Verschelde
2022-07-23 23:41:51 +02:00
parent 3084a48ace
commit 90019676b0
491 changed files with 1009 additions and 863 deletions
+3 -3
View File
@@ -28,8 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifndef API_DUMP_H
#define API_DUMP_H
#ifndef EXTENSION_API_DUMP_H
#define EXTENSION_API_DUMP_H
#include "core/extension/native_extension.h"
@@ -42,4 +42,4 @@ public:
};
#endif
#endif // API_DUMP_H
#endif // EXTENSION_API_DUMP_H
+1 -1
View File
@@ -582,4 +582,4 @@ typedef GDNativeBool (*GDNativeInitializationFunction)(const GDNativeInterface *
}
#endif
#endif
#endif // GDNATIVE_INTERFACE_H
+1 -1
View File
@@ -97,4 +97,4 @@ public:
virtual String get_resource_type(const String &p_path) const;
};
#endif // NATIVEEXTENSION_H
#endif // NATIVE_EXTENSION_H
+1 -1
View File
@@ -71,4 +71,4 @@ public:
VARIANT_ENUM_CAST(NativeExtensionManager::LoadStatus)
#endif // NATIVEEXTENSIONMANAGER_H
#endif // NATIVE_EXTENSION_MANAGER_H