From b4a58be1131a7021b067b9521b1787842f5405db Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Thu, 1 Jun 2017 23:38:02 +0200 Subject: [PATCH] #define HIDE_WRONG_DATA to get release mode build (hiding crashes on invalid AST/symboldatabase). Fix doxygen syntax. --- lib/check.h | 7 +++++-- lib/settings.h | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/check.h b/lib/check.h index 260be91ac..968051750 100644 --- a/lib/check.h +++ b/lib/check.h @@ -32,12 +32,15 @@ #include /** - * Use this macro Cppcheck data can be wrong and you need a to check if that happens to avoid crash/hang + * Cppcheck data can be wrong and you need a to check if that happens to avoid crash/hang * Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden * in debug builds. */ -//#define CHECK_WRONG_DATA(X) (X) // Release (don't crash/hang) +#ifndef HIDE_WRONG_DATA #define CHECK_WRONG_DATA(X) (1) // Debug (crash/hang) +#else +#define CHECK_WRONG_DATA(X) (X) // Release (don't crash/hang) +#endif namespace tinyxml2 { class XMLElement; diff --git a/lib/settings.h b/lib/settings.h index 81cae42e7..6e167dcff 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -132,10 +132,10 @@ public: /** @brief Paths used as base for conversion to relative paths. */ std::vector basePaths; - /** @brief write results (--output-file=) */ + /** @brief write results (--output-file=<file>) */ std::string outputFile; - /** @brief plist output (--plist-output=) */ + /** @brief plist output (--plist-output=<dir>) */ std::string plistOutput; /** @brief write XML results (--xml) */