diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Conf.hpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp index a854552..2ec3148 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -200,6 +200,15 @@ namespace sibs bool directoryToIgnore(const FileString &dir, const std::vector<std::string> &ignoreDirList); bool isProjectNameValid(const std::string &projectName); + enum class Sanitize { + NONE, + ADDRESS, + UNDEFINED, + LEAK + }; + + const Sanitize SANITIZE_INVALID = (Sanitize)-1; + class SibsConfig : public ConfigCallback { public: @@ -214,7 +223,7 @@ namespace sibs cVersion(CVersion::C11), cppVersion(CPPVersion::CPP14), mainProject(false), - sanitize(false), + sanitize(Sanitize::NONE), showWarnings(false), errorOnWarning(false), zigTestAllFiles(false), @@ -396,12 +405,12 @@ namespace sibs this->mainProject = mainProject; } - bool getSanitize() const + Sanitize getSanitize() const { return sanitize; } - void setSanitize(bool sanitize) + void setSanitize(Sanitize sanitize) { this->sanitize = sanitize; } @@ -472,7 +481,7 @@ namespace sibs bool buildTests; bool finishedProcessing; bool mainProject; - bool sanitize; + Sanitize sanitize; }; class SibsTestConfig : public SibsConfig |