#define HIDE_WRONG_DATA to get release mode build (hiding crashes on invalid AST/symboldatabase). Fix doxygen syntax.

This commit is contained in:
Alexander Mai 2017-06-01 23:38:02 +02:00
parent b68c8d91ab
commit b4a58be113
2 changed files with 7 additions and 4 deletions

View File

@ -32,12 +32,15 @@
#include <string> #include <string>
/** /**
* 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 * Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden
* in debug builds. * 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) #define CHECK_WRONG_DATA(X) (1) // Debug (crash/hang)
#else
#define CHECK_WRONG_DATA(X) (X) // Release (don't crash/hang)
#endif
namespace tinyxml2 { namespace tinyxml2 {
class XMLElement; class XMLElement;

View File

@ -132,10 +132,10 @@ public:
/** @brief Paths used as base for conversion to relative paths. */ /** @brief Paths used as base for conversion to relative paths. */
std::vector<std::string> basePaths; std::vector<std::string> basePaths;
/** @brief write results (--output-file=<file>) */ /** @brief write results (--output-file=&lt;file&gt;) */
std::string outputFile; std::string outputFile;
/** @brief plist output (--plist-output=<dir>) */ /** @brief plist output (--plist-output=&lt;dir&gt;) */
std::string plistOutput; std::string plistOutput;
/** @brief write XML results (--xml) */ /** @brief write XML results (--xml) */