We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f71a4ad commit d0e51fbCopy full SHA for d0e51fb
2 files changed
cli/main.cpp
@@ -108,6 +108,11 @@ void CheckOther::checkZeroDivision()
108
*/
109
int main(int argc, char* argv[])
110
{
111
+ // MS Visual C++ memory leak debug tracing
112
+#if defined(_MSC_VER) && defined(_DEBUG)
113
+ _CrtSetDbgFlag( _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ) | _CRTDBG_LEAK_CHECK_DF);
114
+#endif
115
+
116
CppCheckExecutor exec;
117
#ifdef _WIN32
118
char exename[1024] = {0};
lib/config.h
@@ -13,4 +13,10 @@
13
# define CPPCHECKLIB
14
#endif
15
16
+// MS Visual C++ memory leak debug tracing
17
18
+# define _CRTDBG_MAP_ALLOC
19
+# include <crtdbg.h>
20
21
22
#endif // configH
0 commit comments