From 7e3d2be40f44a9309bdd0d6f1d9733e647f5ba51 Mon Sep 17 00:00:00 2001 From: Matthew Andres Moreno Date: Thu, 13 Oct 2022 22:20:42 -0700 Subject: [PATCH] Match conduit headerguard standard --- include/uit_emp/_codegen/make_facade.py | 1 + include/uit_emp/base/always_assert.hpp | 1 + include/uit_emp/base/assert.hpp | 1 + include/uit_emp/base/error.hpp | 1 + include/uit_emp/base/errors.hpp | 1 + include/uit_emp/data/DataFile.hpp | 1 + include/uit_emp/data/DataNode.hpp | 1 + include/uit_emp/datastructs/QueueCache.hpp | 1 + include/uit_emp/datastructs/hash_utils.hpp | 1 + include/uit_emp/datastructs/tuple_utils.hpp | 1 + include/uit_emp/io/ContiguousStream.hpp | 1 + include/uit_emp/io/MemoryIStream.hpp | 1 + include/uit_emp/math/Random.hpp | 1 + include/uit_emp/math/math.hpp | 1 + include/uit_emp/math/random_utils.hpp | 1 + include/uit_emp/meta/TypePack.hpp | 1 + include/uit_emp/meta/meta.hpp | 1 + include/uit_emp/polyfill/span.hpp | 1 + include/uit_emp/tools/keyname_utils.hpp | 1 + include/uit_emp/tools/string_utils.hpp | 1 + 20 files changed, 20 insertions(+) diff --git a/include/uit_emp/_codegen/make_facade.py b/include/uit_emp/_codegen/make_facade.py index 6187155e2..84dc3cae4 100755 --- a/include/uit_emp/_codegen/make_facade.py +++ b/include/uit_emp/_codegen/make_facade.py @@ -15,6 +15,7 @@ def setup_one_facade(header_path: str) -> None: relpath = lambda x: os.path.relpath(x, os.path.dirname(header_path)) content = textwrap.dedent(f"""\ + #pragma once #ifndef {header_guard} #define {header_guard} diff --git a/include/uit_emp/base/always_assert.hpp b/include/uit_emp/base/always_assert.hpp index ac09ebc05..b5a7d2e69 100644 --- a/include/uit_emp/base/always_assert.hpp +++ b/include/uit_emp/base/always_assert.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_BASE_ALWAYS_ASSERT_HPP #define UIT_EMP_BASE_ALWAYS_ASSERT_HPP diff --git a/include/uit_emp/base/assert.hpp b/include/uit_emp/base/assert.hpp index cb321876f..adccd94bf 100644 --- a/include/uit_emp/base/assert.hpp +++ b/include/uit_emp/base/assert.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_BASE_ASSERT_HPP #define UIT_EMP_BASE_ASSERT_HPP diff --git a/include/uit_emp/base/error.hpp b/include/uit_emp/base/error.hpp index 41bc24022..4c29923e3 100644 --- a/include/uit_emp/base/error.hpp +++ b/include/uit_emp/base/error.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_BASE_ERROR_HPP #define UIT_EMP_BASE_ERROR_HPP diff --git a/include/uit_emp/base/errors.hpp b/include/uit_emp/base/errors.hpp index 7dfa25a9a..859372ed8 100644 --- a/include/uit_emp/base/errors.hpp +++ b/include/uit_emp/base/errors.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_BASE_ERRORS_HPP #define UIT_EMP_BASE_ERRORS_HPP diff --git a/include/uit_emp/data/DataFile.hpp b/include/uit_emp/data/DataFile.hpp index 81037821a..75fe3ecc2 100644 --- a/include/uit_emp/data/DataFile.hpp +++ b/include/uit_emp/data/DataFile.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_DATA_DATAFILE_HPP #define UIT_EMP_DATA_DATAFILE_HPP diff --git a/include/uit_emp/data/DataNode.hpp b/include/uit_emp/data/DataNode.hpp index b397c3ab9..df5bd589a 100644 --- a/include/uit_emp/data/DataNode.hpp +++ b/include/uit_emp/data/DataNode.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_DATA_DATANODE_HPP #define UIT_EMP_DATA_DATANODE_HPP diff --git a/include/uit_emp/datastructs/QueueCache.hpp b/include/uit_emp/datastructs/QueueCache.hpp index b9998e647..fea34bbe6 100644 --- a/include/uit_emp/datastructs/QueueCache.hpp +++ b/include/uit_emp/datastructs/QueueCache.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_DATASTRUCTS_QUEUECACHE_HPP #define UIT_EMP_DATASTRUCTS_QUEUECACHE_HPP diff --git a/include/uit_emp/datastructs/hash_utils.hpp b/include/uit_emp/datastructs/hash_utils.hpp index da2c18031..af71b4d6b 100644 --- a/include/uit_emp/datastructs/hash_utils.hpp +++ b/include/uit_emp/datastructs/hash_utils.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_DATASTRUCTS_HASH_UTILS_HPP #define UIT_EMP_DATASTRUCTS_HASH_UTILS_HPP diff --git a/include/uit_emp/datastructs/tuple_utils.hpp b/include/uit_emp/datastructs/tuple_utils.hpp index 2d90e2acf..1b40c95c7 100644 --- a/include/uit_emp/datastructs/tuple_utils.hpp +++ b/include/uit_emp/datastructs/tuple_utils.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_DATASTRUCTS_TUPLE_UTILS_HPP #define UIT_EMP_DATASTRUCTS_TUPLE_UTILS_HPP diff --git a/include/uit_emp/io/ContiguousStream.hpp b/include/uit_emp/io/ContiguousStream.hpp index 97911d5d2..fae7cfb82 100644 --- a/include/uit_emp/io/ContiguousStream.hpp +++ b/include/uit_emp/io/ContiguousStream.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_IO_CONTIGUOUSSTREAM_HPP #define UIT_EMP_IO_CONTIGUOUSSTREAM_HPP diff --git a/include/uit_emp/io/MemoryIStream.hpp b/include/uit_emp/io/MemoryIStream.hpp index ad169ec3a..94a6b2c0a 100644 --- a/include/uit_emp/io/MemoryIStream.hpp +++ b/include/uit_emp/io/MemoryIStream.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_IO_MEMORYISTREAM_HPP #define UIT_EMP_IO_MEMORYISTREAM_HPP diff --git a/include/uit_emp/math/Random.hpp b/include/uit_emp/math/Random.hpp index e7b23d5b3..b98f8fbc2 100644 --- a/include/uit_emp/math/Random.hpp +++ b/include/uit_emp/math/Random.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_MATH_RANDOM_HPP #define UIT_EMP_MATH_RANDOM_HPP diff --git a/include/uit_emp/math/math.hpp b/include/uit_emp/math/math.hpp index f72d39ed8..35e380659 100644 --- a/include/uit_emp/math/math.hpp +++ b/include/uit_emp/math/math.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_MATH_MATH_HPP #define UIT_EMP_MATH_MATH_HPP diff --git a/include/uit_emp/math/random_utils.hpp b/include/uit_emp/math/random_utils.hpp index 8822f1b72..e9e5d436a 100644 --- a/include/uit_emp/math/random_utils.hpp +++ b/include/uit_emp/math/random_utils.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_MATH_RANDOM_UTILS_HPP #define UIT_EMP_MATH_RANDOM_UTILS_HPP diff --git a/include/uit_emp/meta/TypePack.hpp b/include/uit_emp/meta/TypePack.hpp index 18521ccde..ad7f60fcc 100644 --- a/include/uit_emp/meta/TypePack.hpp +++ b/include/uit_emp/meta/TypePack.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_META_TYPEPACK_HPP #define UIT_EMP_META_TYPEPACK_HPP diff --git a/include/uit_emp/meta/meta.hpp b/include/uit_emp/meta/meta.hpp index 319e2e23b..b5cb16e78 100644 --- a/include/uit_emp/meta/meta.hpp +++ b/include/uit_emp/meta/meta.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_META_META_HPP #define UIT_EMP_META_META_HPP diff --git a/include/uit_emp/polyfill/span.hpp b/include/uit_emp/polyfill/span.hpp index 55cc28b51..f0653aede 100644 --- a/include/uit_emp/polyfill/span.hpp +++ b/include/uit_emp/polyfill/span.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_POLYFILL_SPAN_HPP #define UIT_EMP_POLYFILL_SPAN_HPP diff --git a/include/uit_emp/tools/keyname_utils.hpp b/include/uit_emp/tools/keyname_utils.hpp index 7a24da190..c52f95dc5 100644 --- a/include/uit_emp/tools/keyname_utils.hpp +++ b/include/uit_emp/tools/keyname_utils.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_TOOLS_KEYNAME_UTILS_HPP #define UIT_EMP_TOOLS_KEYNAME_UTILS_HPP diff --git a/include/uit_emp/tools/string_utils.hpp b/include/uit_emp/tools/string_utils.hpp index f1711889b..834d82e30 100644 --- a/include/uit_emp/tools/string_utils.hpp +++ b/include/uit_emp/tools/string_utils.hpp @@ -1,3 +1,4 @@ +#pragma once #ifndef UIT_EMP_TOOLS_STRING_UTILS_HPP #define UIT_EMP_TOOLS_STRING_UTILS_HPP