diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-01 00:27:14 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-01 00:50:25 +0100 |
commit | 62cc4b468b4e8653d8ef523fc4081572c6c1c7d8 (patch) | |
tree | 7e1e0816dc3a82db8d3b01f7819940418fd60957 | |
parent | eb285643ed5dab8125e9c6bc94abd7ef562096a5 (diff) |
Add BSD-3 license
83 files changed, 374 insertions, 20 deletions
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 |