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

View file

@ -33,7 +33,7 @@
#include "../gdscript_parser.h"
#include "core/variant/variant.h"
#include "lsp.hpp"
#include "godot_lsp.h"
#ifndef LINE_NUMBER_TO_INDEX
#define LINE_NUMBER_TO_INDEX(p_line) ((p_line)-1)
@ -99,4 +99,4 @@ public:
Error parse(const String &p_code, const String &p_path);
};
#endif
#endif // GDSCRIPT_EXTEND_PARSER_H

View file

@ -36,7 +36,7 @@
#include "core/io/tcp_server.h"
#include "gdscript_text_document.h"
#include "gdscript_workspace.h"
#include "lsp.hpp"
#include "godot_lsp.h"
#include "modules/modules_enabled.gen.h" // For jsonrpc.
#ifdef MODULE_JSONRPC_ENABLED

View file

@ -33,7 +33,7 @@
#include "core/io/file_access.h"
#include "core/object/ref_counted.h"
#include "lsp.hpp"
#include "godot_lsp.h"
class GDScriptTextDocument : public RefCounted {
GDCLASS(GDScriptTextDocument, RefCounted)
@ -77,4 +77,4 @@ public:
GDScriptTextDocument();
};
#endif
#endif // GDSCRIPT_TEXT_DOCUMENT_H

View file

@ -35,7 +35,7 @@
#include "core/variant/variant.h"
#include "editor/editor_file_system.h"
#include "gdscript_extend_parser.h"
#include "lsp.hpp"
#include "godot_lsp.h"
class GDScriptWorkspace : public RefCounted {
GDCLASS(GDScriptWorkspace, RefCounted);
@ -100,4 +100,4 @@ public:
~GDScriptWorkspace();
};
#endif
#endif // GDSCRIPT_WORKSPACE_H

View file

@ -1,5 +1,5 @@
/*************************************************************************/
/* lsp.hpp */
/* godot_lsp.h */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
@ -1975,4 +1975,4 @@ static String marked_documentation(const String &p_bbcode) {
}
} // namespace lsp
#endif
#endif // GODOT_LSP_H