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
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
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 TEST_A_HASH_MAP_H
#define TEST_A_HASH_MAP_H
#pragma once
#include "core/templates/a_hash_map.h"
@ -313,5 +312,3 @@ TEST_CASE("[AHashMap] Array methods") {
}
} // namespace TestAHashMap
#endif // TEST_A_HASH_MAP_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_COMMAND_QUEUE_H
#define TEST_COMMAND_QUEUE_H
#pragma once
#include "core/config/project_settings.h"
#include "core/math/random_number_generator.h"
@ -562,5 +561,3 @@ TEST_CASE("[CommandQueue] Test Parameter Passing Semantics") {
sts.destroy_threads();
}
} // namespace TestCommandQueue
#endif // TEST_COMMAND_QUEUE_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_HASH_MAP_H
#define TEST_HASH_MAP_H
#pragma once
#include "core/templates/hash_map.h"
@ -147,5 +146,3 @@ TEST_CASE("[HashMap] Const iteration") {
}
}
} // namespace TestHashMap
#endif // TEST_HASH_MAP_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_HASH_SET_H
#define TEST_HASH_SET_H
#pragma once
#include "core/templates/hash_set.h"
@ -240,5 +239,3 @@ TEST_CASE("[HashSet] Copy") {
}
} // namespace TestHashSet
#endif // TEST_HASH_SET_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_LIST_H
#define TEST_LIST_H
#pragma once
#include "core/templates/list.h"
@ -555,5 +554,3 @@ TEST_CASE("[Stress][List] Swap random 10 elements, 1000 iterations.") {
swap_random(list, n, 10, 1000);
}
} // namespace TestList
#endif // TEST_LIST_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_LOCAL_VECTOR_H
#define TEST_LOCAL_VECTOR_H
#pragma once
#include "core/templates/local_vector.h"
@ -245,5 +244,3 @@ TEST_CASE("[LocalVector] Size / Resize / Reserve.") {
CHECK(vector.get_capacity() >= 4);
}
} // namespace TestLocalVector
#endif // TEST_LOCAL_VECTOR_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_LRU_H
#define TEST_LRU_H
#pragma once
#include "core/templates/lru.h"
@ -95,5 +94,3 @@ TEST_CASE("[LRU] Resize and clear") {
CHECK(!lru.has(4));
}
} // namespace TestLRU
#endif // TEST_LRU_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_OA_HASH_MAP_H
#define TEST_OA_HASH_MAP_H
#pragma once
#include "core/templates/oa_hash_map.h"
#include "scene/resources/texture.h"
@ -247,5 +246,3 @@ TEST_CASE("[OAHashMap] Non-trivial types") {
}
} // namespace TestOAHashMap
#endif // TEST_OA_HASH_MAP_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_PAGED_ARRAY_H
#define TEST_PAGED_ARRAY_H
#pragma once
#include "core/templates/paged_array.h"
@ -200,5 +199,3 @@ TEST_CASE("[PagedArray] Extensive merge_unordered() test") {
}
} // namespace TestPagedArray
#endif // TEST_PAGED_ARRAY_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_RID_H
#define TEST_RID_H
#pragma once
#include "core/os/thread.h"
#include "core/templates/local_vector.h"
@ -250,5 +249,3 @@ TEST_CASE("[RID_Owner] Thread safety") {
}
}
} // namespace TestRID
#endif // TEST_RID_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef TEST_VECTOR_H
#define TEST_VECTOR_H
#pragma once
#include "core/templates/vector.h"
@ -706,5 +705,3 @@ TEST_CASE("[Vector] Cyclic Reference") {
}
} // namespace TestVector
#endif // TEST_VECTOR_H