summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 09:00:30 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-19 09:00:30 +0100
commit33cbf6971da84801c489ce5ca19ba18867c0b7e1 (patch)
tree92ce38552422aac23e6046344af490bdab8d52f7
parentbd28cc476c2fc76978630e756e27c4bcd58f8e9c (diff)
chore: implement config.hpp, add MailMap, compile_flags, and format files.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--MailMap1
-rw-r--r--compile_flags.txt6
-rwxr-xr-xformat.sh10
-rw-r--r--include/ocl/tproc/detail/config.hpp20
-rw-r--r--test/rope_test/.keep0
5 files changed, 37 insertions, 0 deletions
diff --git a/MailMap b/MailMap
new file mode 100644
index 0000000..e927bf1
--- /dev/null
+++ b/MailMap
@@ -0,0 +1 @@
+@amlel-el-mahrouss - amlal@nekernel.org - Library Author and Chief Architect
diff --git a/compile_flags.txt b/compile_flags.txt
new file mode 100644
index 0000000..8fe3396
--- /dev/null
+++ b/compile_flags.txt
@@ -0,0 +1,6 @@
+-Iinclude/
+-std=c++20
+-xc++
+-I/opt/homebrew/Cellar/boost/1.89.0/include
+-I/opt/homebrew/Cellar/boost/1.90.0/include
+-I/usr/include \ No newline at end of file
diff --git a/format.sh b/format.sh
new file mode 100755
index 0000000..28928f2
--- /dev/null
+++ b/format.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+THIS_PATH="$(realpath "$0")"
+THIS_DIR="$(dirname "$THIS_PATH")"
+
+FILE_LIST="$(find "$THIS_DIR" | grep -E ".*(\.cpp|\.c|\.hpp|\.inl)$")"
+
+echo -e "Files found to format = \n\"\"\"\n$FILE_LIST\n\"\"\""
+
+clang-format --verbose -i --style=file $FILE_LIST
diff --git a/include/ocl/tproc/detail/config.hpp b/include/ocl/tproc/detail/config.hpp
index e69de29..60e5278 100644
--- a/include/ocl/tproc/detail/config.hpp
+++ b/include/ocl/tproc/detail/config.hpp
@@ -0,0 +1,20 @@
+/*
+ * File: config.hpp
+ * Purpose: Configuration header of the `tproc` library.
+ * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License.
+ */
+
+#ifndef __OCL_TPROC_CONFIG
+#define __OCL_TPROC_CONFIG
+
+#include <ocl/detail/config.hpp>
+#include <ocl/is_same.hpp>
+#include <ocl/option.hpp>
+#include <ocl/smart_ptr.hpp>
+
+namespace ocl {
+template <typename CharT> class basic_rope;
+}
+
+#endif // ifndef __OCL_TPROC_CONFIG
diff --git a/test/rope_test/.keep b/test/rope_test/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/rope_test/.keep