summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 14:53:16 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 14:53:16 +0100
commit1a634d1cc7b5243359e421d77b3d3fb3eeea7004 (patch)
tree7245988fccd13123c99e4def0ea6c5bb97fdb11d
parent96952b69011d822ec22e7b0bbe73a9fe6cb83877 (diff)
feat: better documentation of builder objects.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--example/example_03_hello_world_toml/hello_world.cc1
-rw-r--r--src/lib/JSONManifestBuilder.cc3
-rw-r--r--src/lib/TOMLManifestBuilder.cc3
3 files changed, 2 insertions, 5 deletions
diff --git a/example/example_03_hello_world_toml/hello_world.cc b/example/example_03_hello_world_toml/hello_world.cc
index ae47ce8..e259b1a 100644
--- a/example/example_03_hello_world_toml/hello_world.cc
+++ b/example/example_03_hello_world_toml/hello_world.cc
@@ -1,5 +1,4 @@
#include <iostream>
-#include <string>
int main(int argc, char** argv) {
std::cout << "hello, world!\n";
diff --git a/src/lib/JSONManifestBuilder.cc b/src/lib/JSONManifestBuilder.cc
index 8cb126f..bda523c 100644
--- a/src/lib/JSONManifestBuilder.cc
+++ b/src/lib/JSONManifestBuilder.cc
@@ -15,8 +15,7 @@ namespace FS = std::filesystem;
/// @brief Builds a nlohmann::json target from a nlohmann::json file.
/// @param arg_sz filename size (must be 1 or greater).
/// @param arg_val filename path (must be a valid nlohmann::json file).
-/// @retval true building has succeeded.
-/// @retval false fail to build, see error message.
+/// @return bool: whether the build has succeeded or not.
/// =========================================================== ///
bool JSONManifestBuilder::BuildTarget(BuildConfig& config) {
std::string path;
diff --git a/src/lib/TOMLManifestBuilder.cc b/src/lib/TOMLManifestBuilder.cc
index 81814b8..a7eb0de 100644
--- a/src/lib/TOMLManifestBuilder.cc
+++ b/src/lib/TOMLManifestBuilder.cc
@@ -15,8 +15,7 @@ namespace FS = std::filesystem;
/// @brief Builds a TOML target from a TOML file.
/// @param arg_sz filename size (must be 1 or greater).
/// @param arg_val filename path (must be a valid TOML file).
-/// @retval true building has succeeded.
-/// @retval false fail to build, see error message.
+/// @return bool: whether the build has succeeded or not.
/// =========================================================== ///
bool TOMLManifestBuilder::BuildTarget(BuildConfig& config) {
std::string path;