1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Style: Replace header guards with #pragma once

This commit is contained in:
Thaddeus Crews
2025-02-01 10:33:58 -06:00
parent 96fdaa616b
commit 324512e11c
1746 changed files with 1767 additions and 6920 deletions

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GDSCRIPT_EXTEND_PARSER_H
#define GDSCRIPT_EXTEND_PARSER_H
#pragma once
#include "../gdscript_parser.h"
#include "godot_lsp.h"
@@ -169,5 +168,3 @@ public:
Error parse(const String &p_code, const String &p_path);
};
#endif // GDSCRIPT_EXTEND_PARSER_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GDSCRIPT_LANGUAGE_PROTOCOL_H
#define GDSCRIPT_LANGUAGE_PROTOCOL_H
#pragma once
#include "gdscript_text_document.h"
#include "gdscript_workspace.h"
@@ -115,5 +114,3 @@ public:
GDScriptLanguageProtocol();
};
#endif // GDSCRIPT_LANGUAGE_PROTOCOL_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GDSCRIPT_LANGUAGE_SERVER_H
#define GDSCRIPT_LANGUAGE_SERVER_H
#pragma once
#include "gdscript_language_protocol.h"
@@ -60,5 +59,3 @@ public:
};
void register_lsp_types();
#endif // GDSCRIPT_LANGUAGE_SERVER_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GDSCRIPT_TEXT_DOCUMENT_H
#define GDSCRIPT_TEXT_DOCUMENT_H
#pragma once
#include "godot_lsp.h"
@@ -83,5 +82,3 @@ public:
GDScriptTextDocument();
};
#endif // GDSCRIPT_TEXT_DOCUMENT_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GDSCRIPT_WORKSPACE_H
#define GDSCRIPT_WORKSPACE_H
#pragma once
#include "../gdscript_parser.h"
#include "gdscript_extend_parser.h"
@@ -100,5 +99,3 @@ public:
GDScriptWorkspace();
~GDScriptWorkspace();
};
#endif // GDSCRIPT_WORKSPACE_H

View File

@@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef GODOT_LSP_H
#define GODOT_LSP_H
#pragma once
#include "core/doc_data.h"
#include "core/object/class_db.h"
@@ -1954,5 +1953,3 @@ static String marked_documentation(const String &p_bbcode) {
return markdown;
}
} // namespace lsp
#endif // GODOT_LSP_H