Improve formatting (#1680)

* style: format the entire library using clang-format

Updated `reformat.sh` to include the `include` and `example` directories, as well as `.inl` files, and ran it across the repository to ensure consistent code styling throughout the library.

* ci: fix directory name in clang-format workflow

The workflow was checking the `examples` directory, but the directory is actually named `example`. This updates the matrix path to ensure the example files are properly checked during CI.
diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml
index eca3c31..ae30963 100644
--- a/.github/workflows/clang-format.yml
+++ b/.github/workflows/clang-format.yml
@@ -12,7 +12,7 @@
       matrix:
         path:
           - 'src'
-          - 'examples'
+          - 'example'
           - 'include'
     steps:
     - uses: actions/checkout@v4
diff --git a/reformat.sh b/reformat.sh
index cdc03b1..86bc066 100755
--- a/reformat.sh
+++ b/reformat.sh
@@ -1 +1 @@
-find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i
+find src include example -name '*.cpp' -or -name '*.h' -or -name '*.inl' | xargs clang-format -i
diff --git a/src/lib_json/json_valueiterator.inl b/src/lib_json/json_valueiterator.inl
index d6128b8..4e77f36 100644
--- a/src/lib_json/json_valueiterator.inl
+++ b/src/lib_json/json_valueiterator.inl
@@ -122,8 +122,8 @@
 ValueConstIterator::ValueConstIterator(ValueIterator const& other)
     : ValueIteratorBase(other) {}
 
-ValueConstIterator& ValueConstIterator::
-operator=(const ValueIteratorBase& other) {
+ValueConstIterator&
+ValueConstIterator::operator=(const ValueIteratorBase& other) {
   copy(other);
   return *this;
 }