From 62cc4b468b4e8653d8ef523fc4081572c6c1c7d8 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 1 Mar 2025 00:27:14 +0100 Subject: Add BSD-3 license --- BUILD.bazel | 4 ++++ LICENSE.txt | 34 +++++++++++++++++++++++++++++ MODULE.bazel | 4 ++++ asl/base/BUILD.bazel | 4 ++++ asl/base/annotations.hpp | 4 ++++ asl/base/assert.cpp | 4 ++++ asl/base/assert.hpp | 4 ++++ asl/base/config.hpp | 4 ++++ asl/base/defer.hpp | 4 ++++ asl/base/defer_tests.cpp | 4 ++++ asl/base/float.hpp | 4 ++++ asl/base/float_tests.cpp | 4 ++++ asl/base/functional.hpp | 4 ++++ asl/base/functional_tests.cpp | 4 ++++ asl/base/integers.hpp | 4 ++++ asl/base/integers_tests.cpp | 4 ++++ asl/base/meta.hpp | 4 ++++ asl/base/meta_tests.cpp | 4 ++++ asl/base/utility.hpp | 4 ++++ asl/base/utility_tests.cpp | 4 ++++ asl/containers/BUILD.bazel | 4 ++++ asl/containers/buffer.hpp | 4 ++++ asl/containers/buffer_tests.cpp | 4 ++++ asl/containers/hash_map.hpp | 4 ++++ asl/containers/hash_map_tests.cpp | 4 ++++ asl/containers/hash_set.hpp | 4 ++++ asl/containers/hash_set_tests.cpp | 4 ++++ asl/containers/intrusive_list.hpp | 4 ++++ asl/containers/intrusive_list_tests.cpp | 4 ++++ asl/formatting/BUILD.bazel | 4 ++++ asl/formatting/format.cpp | 4 ++++ asl/formatting/format.hpp | 4 ++++ asl/formatting/format_float.cpp | 4 ++++ asl/formatting/format_tests.cpp | 4 ++++ asl/hashing/BUILD.bazel | 4 ++++ asl/hashing/hash.hpp | 4 ++++ asl/hashing/hash_tests.cpp | 4 ++++ asl/io/BUILD.bazel | 4 ++++ asl/io/print.cpp | 4 ++++ asl/io/print.hpp | 4 ++++ asl/io/writer.hpp | 4 ++++ asl/logging/BUILD.bazel | 4 ++++ asl/logging/logging.cpp | 4 ++++ asl/logging/logging.hpp | 4 ++++ asl/logging/logging_tests.cpp | 4 ++++ asl/memory/BUILD.bazel | 4 ++++ asl/memory/allocator.cpp | 4 ++++ asl/memory/allocator.hpp | 4 ++++ asl/memory/layout.hpp | 4 ++++ asl/memory/memory.hpp | 4 ++++ asl/strings/BUILD.bazel | 4 ++++ asl/strings/string.hpp | 4 ++++ asl/strings/string_builder.hpp | 4 ++++ asl/strings/string_builder_tests.cpp | 4 ++++ asl/strings/string_tests.cpp | 4 ++++ asl/strings/string_view.hpp | 4 ++++ asl/strings/string_view_tests.cpp | 4 ++++ asl/synchronization/BUILD.bazel | 4 ++++ asl/synchronization/atomic.hpp | 4 ++++ asl/testing/BUILD.bazel | 4 ++++ asl/testing/testing.cpp | 4 ++++ asl/testing/testing.hpp | 4 ++++ asl/tests/BUILD.bazel | 4 ++++ asl/tests/types.hpp | 4 ++++ asl/types/BUILD.bazel | 4 ++++ asl/types/box.hpp | 4 ++++ asl/types/box_tests.cpp | 4 ++++ asl/types/maybe_uninit.hpp | 4 ++++ asl/types/maybe_uninit_tests.cpp | 4 ++++ asl/types/option.hpp | 4 ++++ asl/types/option_tests.cpp | 4 ++++ asl/types/span.hpp | 4 ++++ asl/types/span_tests.cpp | 4 ++++ asl/types/status.cpp | 4 ++++ asl/types/status.hpp | 4 ++++ asl/types/status_or.hpp | 4 ++++ asl/types/status_or_tests.cpp | 4 ++++ asl/types/status_tests.cpp | 4 ++++ todo.txt | 2 +- tools/BUILD.bazel | 4 ++++ tools/fix_line_endings.py | 4 ++++ vendor/cityhash/LICENSE.txt | 38 ++++++++++++++++----------------- vendor/dragonbox/BUILD.bazel | 4 ++++ 83 files changed, 374 insertions(+), 20 deletions(-) create mode 100644 LICENSE.txt diff --git a/BUILD.bazel b/BUILD.bazel index c5a2f79..7adc1f3 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") refresh_compile_commands( diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..c041ad4 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,34 @@ +Copyright (c) 2025 Steven Le Rouzic + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names + of its contributors may be used to endorse or promote + products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/MODULE.bazel b/MODULE.bazel index 8bb5941..005fbbf 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + module(name = "asl") bazel_dep(name = "platforms", version = "0.0.10") diff --git a/asl/base/BUILD.bazel b/asl/base/BUILD.bazel index 3dc715b..cd05e00 100644 --- a/asl/base/BUILD.bazel +++ b/asl/base/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "base", hdrs = [ diff --git a/asl/base/annotations.hpp b/asl/base/annotations.hpp index b87dbde..ec17502 100644 --- a/asl/base/annotations.hpp +++ b/asl/base/annotations.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/config.hpp" diff --git a/asl/base/assert.cpp b/asl/base/assert.cpp index c3e0c69..ecda20d 100644 --- a/asl/base/assert.cpp +++ b/asl/base/assert.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/assert.hpp" static asl::AssertFailureHandler* s_handler = nullptr; diff --git a/asl/base/assert.hpp b/asl/base/assert.hpp index d23e897..5aeb161 100644 --- a/asl/base/assert.hpp +++ b/asl/base/assert.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/config.hpp" diff --git a/asl/base/config.hpp b/asl/base/config.hpp index e182569..a8652c5 100644 --- a/asl/base/config.hpp +++ b/asl/base/config.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #if defined(_WIN32) diff --git a/asl/base/defer.hpp b/asl/base/defer.hpp index 122312a..bc5d078 100644 --- a/asl/base/defer.hpp +++ b/asl/base/defer.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/utility.hpp" diff --git a/asl/base/defer_tests.cpp b/asl/base/defer_tests.cpp index 488350f..4c53f2c 100644 --- a/asl/base/defer_tests.cpp +++ b/asl/base/defer_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/defer.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/base/float.hpp b/asl/base/float.hpp index 2de2e0c..bd5e3c4 100644 --- a/asl/base/float.hpp +++ b/asl/base/float.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/base/float_tests.cpp b/asl/base/float_tests.cpp index 0a5bebf..05ff467 100644 --- a/asl/base/float_tests.cpp +++ b/asl/base/float_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/float.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/base/functional.hpp b/asl/base/functional.hpp index b4b5312..9aeb485 100644 --- a/asl/base/functional.hpp +++ b/asl/base/functional.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/base/functional_tests.cpp b/asl/base/functional_tests.cpp index 991c3c1..5e7b052 100644 --- a/asl/base/functional_tests.cpp +++ b/asl/base/functional_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/functional.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/base/integers.hpp b/asl/base/integers.hpp index c18c850..4580509 100644 --- a/asl/base/integers.hpp +++ b/asl/base/integers.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/config.hpp" diff --git a/asl/base/integers_tests.cpp b/asl/base/integers_tests.cpp index 52feb85..4a25ae2 100644 --- a/asl/base/integers_tests.cpp +++ b/asl/base/integers_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/integers.hpp" static_assert(sizeof(int8_t) == 1); diff --git a/asl/base/meta.hpp b/asl/base/meta.hpp index bbe5547..b798eeb 100644 --- a/asl/base/meta.hpp +++ b/asl/base/meta.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/base/meta_tests.cpp b/asl/base/meta_tests.cpp index 99cc6c0..774f9bc 100644 --- a/asl/base/meta_tests.cpp +++ b/asl/base/meta_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/meta.hpp" #include "asl/tests/types.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/base/utility.hpp b/asl/base/utility.hpp index b8e13ae..63f16b1 100644 --- a/asl/base/utility.hpp +++ b/asl/base/utility.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/base/utility_tests.cpp b/asl/base/utility_tests.cpp index 8fd6479..20cdf97 100644 --- a/asl/base/utility_tests.cpp +++ b/asl/base/utility_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/base/utility.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/containers/BUILD.bazel b/asl/containers/BUILD.bazel index 792b812..feb5711 100644 --- a/asl/containers/BUILD.bazel +++ b/asl/containers/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "buffer", hdrs = [ diff --git a/asl/containers/buffer.hpp b/asl/containers/buffer.hpp index 3954d35..8bdb63e 100644 --- a/asl/containers/buffer.hpp +++ b/asl/containers/buffer.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/containers/buffer_tests.cpp b/asl/containers/buffer_tests.cpp index fd8ad45..23fe5af 100644 --- a/asl/containers/buffer_tests.cpp +++ b/asl/containers/buffer_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/containers/buffer.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/containers/hash_map.hpp b/asl/containers/hash_map.hpp index a59e580..77e5512 100644 --- a/asl/containers/hash_map.hpp +++ b/asl/containers/hash_map.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/utility.hpp" diff --git a/asl/containers/hash_map_tests.cpp b/asl/containers/hash_map_tests.cpp index 6cb7fe1..9652e2f 100644 --- a/asl/containers/hash_map_tests.cpp +++ b/asl/containers/hash_map_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/testing/testing.hpp" #include "asl/containers/hash_map.hpp" diff --git a/asl/containers/hash_set.hpp b/asl/containers/hash_set.hpp index 97a37f2..6c46aac 100644 --- a/asl/containers/hash_set.hpp +++ b/asl/containers/hash_set.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/annotations.hpp" diff --git a/asl/containers/hash_set_tests.cpp b/asl/containers/hash_set_tests.cpp index 2baab94..d9462d5 100644 --- a/asl/containers/hash_set_tests.cpp +++ b/asl/containers/hash_set_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/containers/hash_set.hpp" #include "asl/testing/testing.hpp" #include "asl/tests/types.hpp" diff --git a/asl/containers/intrusive_list.hpp b/asl/containers/intrusive_list.hpp index 99509b8..ce0c133 100644 --- a/asl/containers/intrusive_list.hpp +++ b/asl/containers/intrusive_list.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/containers/intrusive_list_tests.cpp b/asl/containers/intrusive_list_tests.cpp index 373913c..5d2d97b 100644 --- a/asl/containers/intrusive_list_tests.cpp +++ b/asl/containers/intrusive_list_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/containers/intrusive_list.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/formatting/BUILD.bazel b/asl/formatting/BUILD.bazel index cab293e..836585e 100644 --- a/asl/formatting/BUILD.bazel +++ b/asl/formatting/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "formatting", hdrs = [ diff --git a/asl/formatting/format.cpp b/asl/formatting/format.cpp index 0c52c1b..4f35a52 100644 --- a/asl/formatting/format.cpp +++ b/asl/formatting/format.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/formatting/format.hpp" #include "asl/base/utility.hpp" #include "asl/base/assert.hpp" diff --git a/asl/formatting/format.hpp b/asl/formatting/format.hpp index 02f43eb..c3a1f94 100644 --- a/asl/formatting/format.hpp +++ b/asl/formatting/format.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/formatting/format_float.cpp b/asl/formatting/format_float.cpp index fb37064..aa113c6 100644 --- a/asl/formatting/format_float.cpp +++ b/asl/formatting/format_float.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/formatting/format.hpp" #include "asl/base/float.hpp" diff --git a/asl/formatting/format_tests.cpp b/asl/formatting/format_tests.cpp index 96ed7d0..0e83ee1 100644 --- a/asl/formatting/format_tests.cpp +++ b/asl/formatting/format_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/formatting/format.hpp" #include "asl/testing/testing.hpp" #include "asl/base/float.hpp" diff --git a/asl/hashing/BUILD.bazel b/asl/hashing/BUILD.bazel index 6b9b410..18be389 100644 --- a/asl/hashing/BUILD.bazel +++ b/asl/hashing/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "hashing", hdrs = [ diff --git a/asl/hashing/hash.hpp b/asl/hashing/hash.hpp index 60550d0..d4b0910 100644 --- a/asl/hashing/hash.hpp +++ b/asl/hashing/hash.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/hashing/hash_tests.cpp b/asl/hashing/hash_tests.cpp index 9efb497..e4e69bf 100644 --- a/asl/hashing/hash_tests.cpp +++ b/asl/hashing/hash_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/testing/testing.hpp" #include "asl/hashing/hash.hpp" #include "asl/strings/string_view.hpp" diff --git a/asl/io/BUILD.bazel b/asl/io/BUILD.bazel index b37787c..b25f2fe 100644 --- a/asl/io/BUILD.bazel +++ b/asl/io/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "writer", hdrs = [ diff --git a/asl/io/print.cpp b/asl/io/print.cpp index 0161bd1..5b48eef 100644 --- a/asl/io/print.cpp +++ b/asl/io/print.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/io/print.hpp" #include diff --git a/asl/io/print.hpp b/asl/io/print.hpp index a1899a8..b066609 100644 --- a/asl/io/print.hpp +++ b/asl/io/print.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/formatting/format.hpp" diff --git a/asl/io/writer.hpp b/asl/io/writer.hpp index e3cb313..b5aab62 100644 --- a/asl/io/writer.hpp +++ b/asl/io/writer.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/logging/BUILD.bazel b/asl/logging/BUILD.bazel index 0c8323a..1ddefff 100644 --- a/asl/logging/BUILD.bazel +++ b/asl/logging/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "logging", srcs = [ diff --git a/asl/logging/logging.cpp b/asl/logging/logging.cpp index a825dd3..edf065d 100644 --- a/asl/logging/logging.cpp +++ b/asl/logging/logging.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/logging/logging.hpp" #include "asl/io/print.hpp" #include "asl/strings/string_builder.hpp" diff --git a/asl/logging/logging.hpp b/asl/logging/logging.hpp index 6ad7cfc..9ff0d08 100644 --- a/asl/logging/logging.hpp +++ b/asl/logging/logging.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/utility.hpp" diff --git a/asl/logging/logging_tests.cpp b/asl/logging/logging_tests.cpp index 404f6eb..b4c9fa6 100644 --- a/asl/logging/logging_tests.cpp +++ b/asl/logging/logging_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/logging/logging.hpp" #include "asl/testing/testing.hpp" #include "asl/strings/string_builder.hpp" diff --git a/asl/memory/BUILD.bazel b/asl/memory/BUILD.bazel index 0a198bc..1d90c3b 100644 --- a/asl/memory/BUILD.bazel +++ b/asl/memory/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "memory", hdrs = [ diff --git a/asl/memory/allocator.cpp b/asl/memory/allocator.cpp index 504202d..077b539 100644 --- a/asl/memory/allocator.cpp +++ b/asl/memory/allocator.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/memory/allocator.hpp" #include "asl/base/assert.hpp" #include "asl/memory/layout.hpp" diff --git a/asl/memory/allocator.hpp b/asl/memory/allocator.hpp index d39fa23..1628a8a 100644 --- a/asl/memory/allocator.hpp +++ b/asl/memory/allocator.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/memory/layout.hpp b/asl/memory/layout.hpp index af867d8..9a7b404 100644 --- a/asl/memory/layout.hpp +++ b/asl/memory/layout.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/memory/memory.hpp b/asl/memory/memory.hpp index de8e07d..bf4e125 100644 --- a/asl/memory/memory.hpp +++ b/asl/memory/memory.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/strings/BUILD.bazel b/asl/strings/BUILD.bazel index b9032dc..bb84495 100644 --- a/asl/strings/BUILD.bazel +++ b/asl/strings/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "string_view", hdrs = [ diff --git a/asl/strings/string.hpp b/asl/strings/string.hpp index abad3b4..c2f199f 100644 --- a/asl/strings/string.hpp +++ b/asl/strings/string.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/containers/buffer.hpp" diff --git a/asl/strings/string_builder.hpp b/asl/strings/string_builder.hpp index b983bc9..c8bb4d8 100644 --- a/asl/strings/string_builder.hpp +++ b/asl/strings/string_builder.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/containers/buffer.hpp" diff --git a/asl/strings/string_builder_tests.cpp b/asl/strings/string_builder_tests.cpp index 5341af2..dadfc88 100644 --- a/asl/strings/string_builder_tests.cpp +++ b/asl/strings/string_builder_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/strings/string_builder.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/strings/string_tests.cpp b/asl/strings/string_tests.cpp index dda8f74..4ef6185 100644 --- a/asl/strings/string_tests.cpp +++ b/asl/strings/string_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/strings/string.hpp" #include "asl/testing/testing.hpp" #include "asl/formatting/format.hpp" diff --git a/asl/strings/string_view.hpp b/asl/strings/string_view.hpp index 9d8b576..a3481f8 100644 --- a/asl/strings/string_view.hpp +++ b/asl/strings/string_view.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/strings/string_view_tests.cpp b/asl/strings/string_view_tests.cpp index a357186..33a8d71 100644 --- a/asl/strings/string_view_tests.cpp +++ b/asl/strings/string_view_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/strings/string_view.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/synchronization/BUILD.bazel b/asl/synchronization/BUILD.bazel index 29e0a62..5c11b28 100644 --- a/asl/synchronization/BUILD.bazel +++ b/asl/synchronization/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "atomic", hdrs = [ diff --git a/asl/synchronization/atomic.hpp b/asl/synchronization/atomic.hpp index 528a6fa..c3f3ade 100644 --- a/asl/synchronization/atomic.hpp +++ b/asl/synchronization/atomic.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/testing/BUILD.bazel b/asl/testing/BUILD.bazel index 0bfb7ee..1e1c0f0 100644 --- a/asl/testing/BUILD.bazel +++ b/asl/testing/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "testing", hdrs = [ diff --git a/asl/testing/testing.cpp b/asl/testing/testing.cpp index c788c39..4e62002 100644 --- a/asl/testing/testing.cpp +++ b/asl/testing/testing.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/testing/testing.hpp" #include "asl/io/print.hpp" diff --git a/asl/testing/testing.hpp b/asl/testing/testing.hpp index c3214a5..849c4fd 100644 --- a/asl/testing/testing.hpp +++ b/asl/testing/testing.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/utility.hpp" diff --git a/asl/tests/BUILD.bazel b/asl/tests/BUILD.bazel index eb51ec8..6b8509c 100644 --- a/asl/tests/BUILD.bazel +++ b/asl/tests/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "utils", hdrs = [ diff --git a/asl/tests/types.hpp b/asl/tests/types.hpp index e65aa11..d47c237 100644 --- a/asl/tests/types.hpp +++ b/asl/tests/types.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/utility.hpp" diff --git a/asl/types/BUILD.bazel b/asl/types/BUILD.bazel index d39586b..e5f8158 100644 --- a/asl/types/BUILD.bazel +++ b/asl/types/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "box", hdrs = [ diff --git a/asl/types/box.hpp b/asl/types/box.hpp index d8577ec..4b6e0b3 100644 --- a/asl/types/box.hpp +++ b/asl/types/box.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/assert.hpp" diff --git a/asl/types/box_tests.cpp b/asl/types/box_tests.cpp index 58eb4f6..210943c 100644 --- a/asl/types/box_tests.cpp +++ b/asl/types/box_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/box.hpp" #include "asl/types/option.hpp" diff --git a/asl/types/maybe_uninit.hpp b/asl/types/maybe_uninit.hpp index e8ccbd3..a0d6b86 100644 --- a/asl/types/maybe_uninit.hpp +++ b/asl/types/maybe_uninit.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/types/maybe_uninit_tests.cpp b/asl/types/maybe_uninit_tests.cpp index 16786a7..a525423 100644 --- a/asl/types/maybe_uninit_tests.cpp +++ b/asl/types/maybe_uninit_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/maybe_uninit.hpp" #include "asl/tests/types.hpp" diff --git a/asl/types/option.hpp b/asl/types/option.hpp index 8b5f313..c25d12d 100644 --- a/asl/types/option.hpp +++ b/asl/types/option.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/assert.hpp" diff --git a/asl/types/option_tests.cpp b/asl/types/option_tests.cpp index 272b40a..22b34d3 100644 --- a/asl/types/option_tests.cpp +++ b/asl/types/option_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/option.hpp" #include "asl/tests/types.hpp" #include "asl/testing/testing.hpp" diff --git a/asl/types/span.hpp b/asl/types/span.hpp index 648441a..eff6ac7 100644 --- a/asl/types/span.hpp +++ b/asl/types/span.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/meta.hpp" diff --git a/asl/types/span_tests.cpp b/asl/types/span_tests.cpp index 43be2fc..47749cf 100644 --- a/asl/types/span_tests.cpp +++ b/asl/types/span_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/span.hpp" #include "asl/testing/testing.hpp" #include "asl/tests/types.hpp" diff --git a/asl/types/status.cpp b/asl/types/status.cpp index a16b1a2..fd751d1 100644 --- a/asl/types/status.cpp +++ b/asl/types/status.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/status.hpp" #include "asl/memory/allocator.hpp" #include "asl/strings/string.hpp" diff --git a/asl/types/status.hpp b/asl/types/status.hpp index 738feb1..31b6df6 100644 --- a/asl/types/status.hpp +++ b/asl/types/status.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/base/integers.hpp" diff --git a/asl/types/status_or.hpp b/asl/types/status_or.hpp index a8a48c1..c40ecce 100644 --- a/asl/types/status_or.hpp +++ b/asl/types/status_or.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "asl/types/status.hpp" diff --git a/asl/types/status_or_tests.cpp b/asl/types/status_or_tests.cpp index 81a2b19..464b8bb 100644 --- a/asl/types/status_or_tests.cpp +++ b/asl/types/status_or_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/status_or.hpp" #include "asl/testing/testing.hpp" #include "asl/tests/types.hpp" diff --git a/asl/types/status_tests.cpp b/asl/types/status_tests.cpp index 4c3579b..362556d 100644 --- a/asl/types/status_tests.cpp +++ b/asl/types/status_tests.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "asl/types/status.hpp" #include "asl/testing/testing.hpp" #include "asl/formatting/format.hpp" diff --git a/todo.txt b/todo.txt index 8da8489..8b13789 100644 --- a/todo.txt +++ b/todo.txt @@ -1 +1 @@ -license + diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 3ed500a..b517e1f 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + load("@rules_python//python:py_binary.bzl", "py_binary") py_binary( diff --git a/tools/fix_line_endings.py b/tools/fix_line_endings.py index ce6cf4b..3a8aed6 100644 --- a/tools/fix_line_endings.py +++ b/tools/fix_line_endings.py @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + import os import subprocess import glob diff --git a/vendor/cityhash/LICENSE.txt b/vendor/cityhash/LICENSE.txt index bf15194..e558b2a 100644 --- a/vendor/cityhash/LICENSE.txt +++ b/vendor/cityhash/LICENSE.txt @@ -1,19 +1,19 @@ -// Copyright (c) 2011 Google, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. +Copyright (c) 2011 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor/dragonbox/BUILD.bazel b/vendor/dragonbox/BUILD.bazel index f86ec78..b3092a7 100644 --- a/vendor/dragonbox/BUILD.bazel +++ b/vendor/dragonbox/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "dragonbox", hdrs = ["dragonbox.h"], -- cgit