diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..de3232a --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,9 @@ +# AGENTS + +## Header inclusion +This project provides dedicated entry-point headers that include internal dependencies in the correct order. Use these headers instead of forward-declaring library types. + +* `include/logit_cpp/LogIt.hpp` – main entry for the entire library. +* `include/logit_cpp/logit/utils.hpp` – aggregates the utilities module. + +Including through these headers ensures dependencies are resolved without manual forward declarations. diff --git a/include/logit_cpp/logit/utils.hpp b/include/logit_cpp/logit/utils.hpp index 0d65770..830cae5 100644 --- a/include/logit_cpp/logit/utils.hpp +++ b/include/logit_cpp/logit/utils.hpp @@ -9,6 +9,7 @@ /// encoding utilities, path utilities, and log record management. Including this header /// provides a single point of access to common utility functions and types. +#include "enums.hpp" #include "utils/format.hpp" #include "utils/VariableValue.hpp" #include "utils/argument_utils.hpp" diff --git a/include/logit_cpp/logit/utils/LogRecord.hpp b/include/logit_cpp/logit/utils/LogRecord.hpp index 33ce586..0f70331 100644 --- a/include/logit_cpp/logit/utils/LogRecord.hpp +++ b/include/logit_cpp/logit/utils/LogRecord.hpp @@ -5,6 +5,9 @@ /// \file LogRecord.hpp /// \brief Contains the definition of the LogRecord structure for storing log data. +#include +#include +#include #include namespace logit {