summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILD.bazel4
-rw-r--r--LICENSE.txt34
-rw-r--r--MODULE.bazel4
-rw-r--r--asl/base/BUILD.bazel4
-rw-r--r--asl/base/annotations.hpp4
-rw-r--r--asl/base/assert.cpp4
-rw-r--r--asl/base/assert.hpp4
-rw-r--r--asl/base/config.hpp4
-rw-r--r--asl/base/defer.hpp4
-rw-r--r--asl/base/defer_tests.cpp4
-rw-r--r--asl/base/float.hpp4
-rw-r--r--asl/base/float_tests.cpp4
-rw-r--r--asl/base/functional.hpp4
-rw-r--r--asl/base/functional_tests.cpp4
-rw-r--r--asl/base/integers.hpp4
-rw-r--r--asl/base/integers_tests.cpp4
-rw-r--r--asl/base/meta.hpp4
-rw-r--r--asl/base/meta_tests.cpp4
-rw-r--r--asl/base/utility.hpp4
-rw-r--r--asl/base/utility_tests.cpp4
-rw-r--r--asl/containers/BUILD.bazel4
-rw-r--r--asl/containers/buffer.hpp4
-rw-r--r--asl/containers/buffer_tests.cpp4
-rw-r--r--asl/containers/hash_map.hpp4
-rw-r--r--asl/containers/hash_map_tests.cpp4
-rw-r--r--asl/containers/hash_set.hpp4
-rw-r--r--asl/containers/hash_set_tests.cpp4
-rw-r--r--asl/containers/intrusive_list.hpp4
-rw-r--r--asl/containers/intrusive_list_tests.cpp4
-rw-r--r--asl/formatting/BUILD.bazel4
-rw-r--r--asl/formatting/format.cpp4
-rw-r--r--asl/formatting/format.hpp4
-rw-r--r--asl/formatting/format_float.cpp4
-rw-r--r--asl/formatting/format_tests.cpp4
-rw-r--r--asl/hashing/BUILD.bazel4
-rw-r--r--asl/hashing/hash.hpp4
-rw-r--r--asl/hashing/hash_tests.cpp4
-rw-r--r--asl/io/BUILD.bazel4
-rw-r--r--asl/io/print.cpp4
-rw-r--r--asl/io/print.hpp4
-rw-r--r--asl/io/writer.hpp4
-rw-r--r--asl/logging/BUILD.bazel4
-rw-r--r--asl/logging/logging.cpp4
-rw-r--r--asl/logging/logging.hpp4
-rw-r--r--asl/logging/logging_tests.cpp4
-rw-r--r--asl/memory/BUILD.bazel4
-rw-r--r--asl/memory/allocator.cpp4
-rw-r--r--asl/memory/allocator.hpp4
-rw-r--r--asl/memory/layout.hpp4
-rw-r--r--asl/memory/memory.hpp4
-rw-r--r--asl/strings/BUILD.bazel4
-rw-r--r--asl/strings/string.hpp4
-rw-r--r--asl/strings/string_builder.hpp4
-rw-r--r--asl/strings/string_builder_tests.cpp4
-rw-r--r--asl/strings/string_tests.cpp4
-rw-r--r--asl/strings/string_view.hpp4
-rw-r--r--asl/strings/string_view_tests.cpp4
-rw-r--r--asl/synchronization/BUILD.bazel4
-rw-r--r--asl/synchronization/atomic.hpp4
-rw-r--r--asl/testing/BUILD.bazel4
-rw-r--r--asl/testing/testing.cpp4
-rw-r--r--asl/testing/testing.hpp4
-rw-r--r--asl/tests/BUILD.bazel4
-rw-r--r--asl/tests/types.hpp4
-rw-r--r--asl/types/BUILD.bazel4
-rw-r--r--asl/types/box.hpp4
-rw-r--r--asl/types/box_tests.cpp4
-rw-r--r--asl/types/maybe_uninit.hpp4
-rw-r--r--asl/types/maybe_uninit_tests.cpp4
-rw-r--r--asl/types/option.hpp4
-rw-r--r--asl/types/option_tests.cpp4
-rw-r--r--asl/types/span.hpp4
-rw-r--r--asl/types/span_tests.cpp4
-rw-r--r--asl/types/status.cpp4
-rw-r--r--asl/types/status.hpp4
-rw-r--r--asl/types/status_or.hpp4
-rw-r--r--asl/types/status_or_tests.cpp4
-rw-r--r--asl/types/status_tests.cpp4
-rw-r--r--todo.txt2
-rw-r--r--tools/BUILD.bazel4
-rw-r--r--tools/fix_line_endings.py4
-rw-r--r--vendor/cityhash/LICENSE.txt38
-rw-r--r--vendor/dragonbox/BUILD.bazel4
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/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 @@