diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 09:46:53 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 09:47:53 +0100 |
| commit | f69ab8b1fcc0e1cca1c1dff96e204440f1f4f7f3 (patch) | |
| tree | afa1bab2b960d042a96c7ab71cfcbd9a02a75c20 | |
| parent | ceb8ca661c7d6cdb10be6593f3eedabf42846b0e (diff) | |
feat: update file header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | example/hash_crc32_example/example.cc | 5 | ||||
| -rw-r--r-- | example/option_example/example.cc | 7 | ||||
| -rw-r--r-- | example/simple_allocator_op/example.cc | 5 | ||||
| -rw-r--r-- | example/smart_ptr_example/example.cc | 5 | ||||
| -rw-r--r-- | include/ocl/allocator_op.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/basic_hash.hpp | 9 | ||||
| -rw-r--r-- | include/ocl/crc_hash.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/equiv.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/io.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/option.hpp | 9 | ||||
| -rw-r--r-- | include/ocl/print.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/smart_ptr.hpp | 10 | ||||
| -rw-r--r-- | include/ocl/tracked_ptr.hpp | 10 | ||||
| -rw-r--r-- | test/allocator_op.test.cpp | 8 | ||||
| -rw-r--r-- | test/option.test.cpp | 9 |
15 files changed, 68 insertions, 59 deletions
diff --git a/example/hash_crc32_example/example.cc b/example/hash_crc32_example/example.cc index be6780f..d2f045e 100644 --- a/example/hash_crc32_example/example.cc +++ b/example/hash_crc32_example/example.cc @@ -1,3 +1,8 @@ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + #include <ocl/crc_hash.hpp> #include <ocl/print.hpp> #include <ocl/option.hpp> diff --git a/example/option_example/example.cc b/example/option_example/example.cc index c784dec..b2c3f95 100644 --- a/example/option_example/example.cc +++ b/example/option_example/example.cc @@ -1,3 +1,8 @@ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + #include <ocl/crc_hash.hpp> #include <ocl/print.hpp> #include <ocl/option.hpp> @@ -6,7 +11,7 @@ struct invalid_callable { explicit invalid_callable() = default; void operator()(const char* reason) { - ocl::detail::throw_runtime_error(BOOST_CURRENT_LOCATION.to_string()); + ocl::detail::throw_runtime_error(); } }; diff --git a/example/simple_allocator_op/example.cc b/example/simple_allocator_op/example.cc index 433da22..f09f60f 100644 --- a/example/simple_allocator_op/example.cc +++ b/example/simple_allocator_op/example.cc @@ -1,3 +1,8 @@ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + #include <ocl/print.hpp> #include <ocl/allocator_op.hpp> diff --git a/example/smart_ptr_example/example.cc b/example/smart_ptr_example/example.cc index e0f8555..abe5aaf 100644 --- a/example/smart_ptr_example/example.cc +++ b/example/smart_ptr_example/example.cc @@ -1,3 +1,8 @@ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + #include <ocl/crc_hash.hpp> #include <ocl/print.hpp> #include <ocl/smart_ptr.hpp> diff --git a/include/ocl/allocator_op.hpp b/include/ocl/allocator_op.hpp index 00a1cd2..4263c95 100644 --- a/include/ocl/allocator_op.hpp +++ b/include/ocl/allocator_op.hpp @@ -1,9 +1,7 @@ -/* - * File: allocator_op.hpp - * Purpose: Allocate from a pool. - * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. Licensed under the BSL 1.0 license - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_ALLOC #define __OCL_CORE_ALLOC diff --git a/include/ocl/basic_hash.hpp b/include/ocl/basic_hash.hpp index a6978fc..705ed7e 100644 --- a/include/ocl/basic_hash.hpp +++ b/include/ocl/basic_hash.hpp @@ -1,8 +1,7 @@ -/* - * File: basic_hash.hpp - * Author: Amlal El Mahrouss, - * Copyright 2023-2025, Amlal El Mahrouss, Licensed under the Boost Software License - */ +// Copyright 2023-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_BASIC_HASH #define __OCL_CORE_BASIC_HASH diff --git a/include/ocl/crc_hash.hpp b/include/ocl/crc_hash.hpp index 3a5046a..848f0e5 100644 --- a/include/ocl/crc_hash.hpp +++ b/include/ocl/crc_hash.hpp @@ -1,9 +1,7 @@ -/* - * File: crc_hash.hpp - * Purpose: Hashing module. - * Author: Amlal El Mahrouss, - * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_CRC_HASH #define __OCL_CORE_CRC_HASH diff --git a/include/ocl/equiv.hpp b/include/ocl/equiv.hpp index f9031b1..60fbf44 100644 --- a/include/ocl/equiv.hpp +++ b/include/ocl/equiv.hpp @@ -1,9 +1,7 @@ -/* - * File: equiv.hpp - * Purpose: Equivalence header. - * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. - */ +// Copyright 2023-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_EQUIV #define __OCL_CORE_EQUIV diff --git a/include/ocl/io.hpp b/include/ocl/io.hpp index 155153e..ad04ecd 100644 --- a/include/ocl/io.hpp +++ b/include/ocl/io.hpp @@ -1,9 +1,7 @@ -/* - * File: print.hpp - * Purpose: OCL Print library - * Author: Amlal El Mahrouss. (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. Licensed under the BSL 1.0 license - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_IO #define __OCL_CORE_IO diff --git a/include/ocl/option.hpp b/include/ocl/option.hpp index 7f66579..61c4b5f 100644 --- a/include/ocl/option.hpp +++ b/include/ocl/option.hpp @@ -1,8 +1,7 @@ -/* - * File: option.hpp - * Author: Amlal El Mahrouss, - * Copyright 2023-2025, Amlal El Mahrouss, Licensed under the Boost Software License - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_OPTION #define __OCL_CORE_OPTION diff --git a/include/ocl/print.hpp b/include/ocl/print.hpp index 98c4d6b..657ca32 100644 --- a/include/ocl/print.hpp +++ b/include/ocl/print.hpp @@ -1,9 +1,7 @@ -/* - * File: print.hpp - * Purpose: OCL Print library - * Author: Amlal El Mahrouss. (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. Licensed under the BSL 1.0 license - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_CORE_PRINT #define __OCL_CORE_PRINT diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp index 4bdff42..a001147 100644 --- a/include/ocl/smart_ptr.hpp +++ b/include/ocl/smart_ptr.hpp @@ -1,9 +1,7 @@ -/* - * File: smart_ptr.hpp - * Purpose: Smart Pointer helpers. - * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, Licensed under the Boost Software License. Licensed under the BSL 1.0 license - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_SMART_PTR #define __OCL_SMART_PTR diff --git a/include/ocl/tracked_ptr.hpp b/include/ocl/tracked_ptr.hpp index aace5d8..878de41 100644 --- a/include/ocl/tracked_ptr.hpp +++ b/include/ocl/tracked_ptr.hpp @@ -1,9 +1,7 @@ -/* - * File: ocl/tracked_ptr.hpp - * Purpose: Strict pointer type implementation in C++ - * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. - */ +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core #ifndef __OCL_TRACKED_PTR #define __OCL_TRACKED_PTR diff --git a/test/allocator_op.test.cpp b/test/allocator_op.test.cpp index c079bd9..33546de 100644 --- a/test/allocator_op.test.cpp +++ b/test/allocator_op.test.cpp @@ -1,6 +1,8 @@ -// File: allocator.test.cpp -// Purpose; Allocator test for OCL. -/// @brief This unit test checks if the test succeeds. +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + /// @author Amlal El Mahrouss #include <ocl/allocator_op.hpp> diff --git a/test/option.test.cpp b/test/option.test.cpp index 3cc336f..6751356 100644 --- a/test/option.test.cpp +++ b/test/option.test.cpp @@ -1,6 +1,9 @@ -// File: option.test.cpp -// Purpose; Option test for OCL. -/// @brief This unit test checks if the test fails with the expected value. +// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org) +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Official repository: https://github.com/ocl-org/core + +/// @brief Checks if the test fails with the expected value. /// @author Amlal El Mahrouss #include <ocl/option.hpp> |
