mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Style: Replace header guards with #pragma once
This commit is contained in:
parent
96fdaa616b
commit
324512e11c
1746 changed files with 1767 additions and 6920 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_CONFIG_FILE_H
|
||||
#define TEST_CONFIG_FILE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/config_file.h"
|
||||
#include "core/os/os.h"
|
||||
|
|
@ -160,5 +159,3 @@ antiAliasing=false
|
|||
"The saved configuration file should match the expected format.");
|
||||
}
|
||||
} // namespace TestConfigFile
|
||||
|
||||
#endif // TEST_CONFIG_FILE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_FILE_ACCESS_H
|
||||
#define TEST_FILE_ACCESS_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "tests/test_macros.h"
|
||||
|
|
@ -200,5 +199,3 @@ TEST_CASE("[FileAccess] Get/Store floating point half precision values") {
|
|||
}
|
||||
|
||||
} // namespace TestFileAccess
|
||||
|
||||
#endif // TEST_FILE_ACCESS_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_HTTP_CLIENT_H
|
||||
#define TEST_HTTP_CLIENT_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/http_client.h"
|
||||
|
||||
|
|
@ -106,5 +105,3 @@ TEST_CASE("[HTTPClient] connect_to_host") {
|
|||
#endif // MODULE_MBEDTLS_ENABLED || WEB_ENABLED
|
||||
|
||||
} // namespace TestHTTPClient
|
||||
|
||||
#endif // TEST_HTTP_CLIENT_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_IMAGE_H
|
||||
#define TEST_IMAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/image.h"
|
||||
#include "core/os/os.h"
|
||||
|
|
@ -444,5 +443,3 @@ TEST_CASE("[Image] Convert image") {
|
|||
}
|
||||
|
||||
} // namespace TestImage
|
||||
|
||||
#endif // TEST_IMAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_IP_H
|
||||
#define TEST_IP_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/ip.h"
|
||||
|
||||
|
|
@ -47,5 +46,3 @@ TEST_CASE("[IP] resolve_hostname") {
|
|||
}
|
||||
|
||||
} // namespace TestIP
|
||||
|
||||
#endif // TEST_IP_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_JSON_H
|
||||
#define TEST_JSON_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/json.h"
|
||||
|
||||
|
|
@ -318,5 +317,3 @@ TEST_CASE("[JSON] Serialization") {
|
|||
}
|
||||
}
|
||||
} // namespace TestJSON
|
||||
|
||||
#endif // TEST_JSON_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_JSON_NATIVE_H
|
||||
#define TEST_JSON_NATIVE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/json.h"
|
||||
|
||||
|
|
@ -223,5 +222,3 @@ TEST_CASE("[JSON][Native] Conversion between native and JSON formats") {
|
|||
}
|
||||
|
||||
} // namespace TestJSONNative
|
||||
|
||||
#endif // TEST_JSON_NATIVE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_LOGGER_H
|
||||
#define TEST_LOGGER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/dir_access.h"
|
||||
#include "core/io/logger.h"
|
||||
|
|
@ -166,5 +165,3 @@ TEST_CASE("[Logger][CompositeLogger] Logs the same into multiple loggers") {
|
|||
}
|
||||
|
||||
} // namespace TestLogger
|
||||
|
||||
#endif // TEST_LOGGER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_MARSHALLS_H
|
||||
#define TEST_MARSHALLS_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/marshalls.h"
|
||||
|
||||
|
|
@ -491,5 +490,3 @@ TEST_CASE("[Marshalls] Typed dictionary decoding") {
|
|||
}
|
||||
|
||||
} // namespace TestMarshalls
|
||||
|
||||
#endif // TEST_MARSHALLS_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_PACKET_PEER_H
|
||||
#define TEST_PACKET_PEER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/packet_peer.h"
|
||||
#include "tests/test_macros.h"
|
||||
|
|
@ -200,5 +199,3 @@ TEST_CASE("[PacketPeer][PacketPeerStream] Put packet buffer when is empty") {
|
|||
}
|
||||
|
||||
} // namespace TestPacketPeer
|
||||
|
||||
#endif // TEST_PACKET_PEER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_PCK_PACKER_H
|
||||
#define TEST_PCK_PACKER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/file_access_pack.h"
|
||||
#include "core/io/pck_packer.h"
|
||||
|
|
@ -118,5 +117,3 @@ TEST_CASE("[PCKPacker] Pack a PCK file with some files and directories") {
|
|||
"The generated non-empty PCK file shouldn't be too large.");
|
||||
}
|
||||
} // namespace TestPCKPacker
|
||||
|
||||
#endif // TEST_PCK_PACKER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_RESOURCE_H
|
||||
#define TEST_RESOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
|
|
@ -167,5 +166,3 @@ TEST_CASE("[Resource] Breaking circular references on save") {
|
|||
resource_c->remove_meta("next");
|
||||
}
|
||||
} // namespace TestResource
|
||||
|
||||
#endif // TEST_RESOURCE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_RESOURCE_UID_H
|
||||
#define TEST_RESOURCE_UID_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource_uid.h"
|
||||
|
||||
|
|
@ -67,5 +66,3 @@ TEST_CASE("[ResourceUID] Must encode and decode various UIDs correctly") {
|
|||
}
|
||||
|
||||
} // namespace TestResourceUID
|
||||
|
||||
#endif // TEST_RESOURCE_UID_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_STREAM_PEER_H
|
||||
#define TEST_STREAM_PEER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/stream_peer.h"
|
||||
#include "tests/test_macros.h"
|
||||
|
|
@ -307,5 +306,3 @@ TEST_CASE("[StreamPeer] Get UTF8 string when there is no string") {
|
|||
}
|
||||
|
||||
} // namespace TestStreamPeer
|
||||
|
||||
#endif // TEST_STREAM_PEER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_STREAM_PEER_BUFFER_H
|
||||
#define TEST_STREAM_PEER_BUFFER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/stream_peer.h"
|
||||
#include "tests/test_macros.h"
|
||||
|
|
@ -181,5 +180,3 @@ TEST_CASE("[StreamPeerBuffer] Get data with invalid size returns an error") {
|
|||
}
|
||||
|
||||
} // namespace TestStreamPeerBuffer
|
||||
|
||||
#endif // TEST_STREAM_PEER_BUFFER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_TCP_SERVER_H
|
||||
#define TEST_TCP_SERVER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/stream_peer_tcp.h"
|
||||
#include "core/io/tcp_server.h"
|
||||
|
|
@ -251,5 +250,3 @@ TEST_CASE("[TCPServer] Should disconnect client") {
|
|||
}
|
||||
|
||||
} // namespace TestTCPServer
|
||||
|
||||
#endif // TEST_TCP_SERVER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_UDP_SERVER_H
|
||||
#define TEST_UDP_SERVER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/packet_peer_udp.h"
|
||||
#include "core/io/udp_server.h"
|
||||
|
|
@ -215,5 +214,3 @@ TEST_CASE("[UDPServer] Should not accept new connections after stop") {
|
|||
}
|
||||
|
||||
} // namespace TestUDPServer
|
||||
|
||||
#endif // TEST_UDP_SERVER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEST_XML_PARSER_H
|
||||
#define TEST_XML_PARSER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/xml_parser.h"
|
||||
|
||||
|
|
@ -231,5 +230,3 @@ TEST_CASE("[XMLParser] CDATA") {
|
|||
CHECK_EQ(parser.get_node_name(), "a");
|
||||
}
|
||||
} // namespace TestXMLParser
|
||||
|
||||
#endif // TEST_XML_PARSER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue