catch2/include/internal
Jozef Grajciar ab98afe68b Catch::LeakDetector: added cleanup call to destructor
simple code with provided main function which just returns 0
leaks memory due to fact that singletons are not cleaned up

running valgrind on such simple application reports that 752 bytes
are still available in 11 blocks

this commit adds destructor to Catch::LeakDetector which calls
Catch::cleanUp()
2018-10-18 11:47:21 +02:00
..
catch_approx.cpp Replace most naked throws with macros from catch_enforce.h 2018-09-03 18:07:34 +02:00
catch_approx.h Directly set Approx's members in operator() 2018-09-03 10:20:58 +02:00
catch_assertionhandler.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_assertionhandler.h Avoid copying StringRef 2018-07-23 14:04:43 +02:00
catch_assertioninfo.h Actually do what the previous commit claimed to do! 2017-08-09 10:29:05 +01:00
catch_assertionresult.cpp StringRef appends itself to std::string efficiently 2018-02-28 16:02:25 +01:00
catch_assertionresult.h Fix pointless type mismatch between StringRef and std::string 2017-11-13 12:49:13 +01:00
catch_benchmark.cpp Remove catch_context.h from the common include path 2017-08-29 15:36:09 +02:00
catch_benchmark.h qualified a load of size_ts with std:: namespace (all those not from Clara) 2017-09-18 17:13:17 +01:00
catch_capture_matchers.cpp Avoid copying StringRef 2018-07-23 14:04:43 +02:00
catch_capture_matchers.h Avoid copying StringRef 2018-07-23 14:04:43 +02:00
catch_capture.hpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_clara.h Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_commandline.cpp Allow only 1 reporter at a time 2018-04-07 12:05:29 +02:00
catch_commandline.h Changed all .hpp extensions to .h where there is now a corresponding .cpp 2017-09-07 11:24:33 +01:00
catch_common.cpp Optimize SourceLineInfo::operator< with short-circuiting 2018-07-23 20:46:42 +02:00
catch_common.h Fix different operator<< overload sets used for SFINAE and insertion 2018-10-13 16:53:30 +02:00
catch_compiler_capabilities.h prevent cygwin to_string compiler error 2018-09-27 20:56:27 +02:00
catch_config.cpp Allow only 1 reporter at a time 2018-04-07 12:05:29 +02:00
catch_config.hpp Call listeners before calling reporters 2018-04-07 12:25:03 +02:00
catch_console_colour.cpp Introduce support for DJGPP cross compiler 2018-03-07 10:35:32 +01:00
catch_console_colour.h Add a BrightYellow colour, also use it for reconstructed exprs 2018-02-01 14:58:33 +00:00
catch_context.cpp Manual cherry-pick from #1111 2017-12-09 20:17:47 +01:00
catch_context.h Manual cherry-pick from #1111 2017-12-09 20:17:47 +01:00
catch_debug_console.cpp Fix how windows.h is included in our files. 2018-02-23 12:40:12 +01:00
catch_debug_console.h Split writeToDebugConsole out of main path 2017-08-29 13:51:55 +02:00
catch_debugger.cpp Moved a lot of stream related stuff out of the public headers and replaced more ostream dependencies with iosfwd 2017-11-07 15:55:09 +00:00
catch_debugger.h Fixes for cygwin 2018-02-01 16:14:20 +00:00
catch_decomposer.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_decomposer.h Remove unnecessary semicolons 2018-02-05 10:03:51 +01:00
catch_default_main.hpp Introduce conditional wchar_t (and std::wstring) support 2018-03-07 10:35:31 +01:00
catch_enforce.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_enforce.h Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_errno_guard.cpp Started work on splitting out .cpp files from header files 2017-07-06 22:28:42 +02:00
catch_errno_guard.h Started work on splitting out .cpp files from header files 2017-07-06 22:28:42 +02:00
catch_exception_translator_registry.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_exception_translator_registry.h Addressed Resharper-C++ warnings 2017-07-25 17:16:28 +02:00
catch_external_interfaces.h Provide ConsoleReporter declaration with EXTERNAL_INTERFACES 2017-11-14 20:42:58 +01:00
catch_fatal_condition.cpp Ensure stack size for POSIX signal handling is sufficient 2018-05-29 22:29:04 +02:00
catch_fatal_condition.h Simplify logic selecting between signal handling/SEH/nothing 2018-02-23 14:56:07 +01:00
catch_generators.cpp Move all<int> to .cpp file to remove <limits> from common path 2018-08-24 13:34:03 +02:00
catch_generators.hpp Replace most naked throws with macros from catch_enforce.h 2018-09-03 18:07:34 +02:00
catch_impl.hpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_capture.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_capture.h First attempt at data generator support 2018-08-24 13:31:51 +02:00
catch_interfaces_config.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_config.h https://github.com/catchorg/Catch2/issues/1175 - don't list hidden tests by default 2018-02-09 19:55:40 +01:00
catch_interfaces_exception.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_exception.h Stop leaking some warning suppressions to user code 2017-11-29 19:14:33 +03:00
catch_interfaces_generatortracker.h First attempt at data generator support 2018-08-24 13:31:51 +02:00
catch_interfaces_registry_hub.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_registry_hub.h Moved registry hub to generic singleton 2018-08-19 11:13:19 +02:00
catch_interfaces_reporter.cpp Call listeners before calling reporters 2018-04-07 12:25:03 +02:00
catch_interfaces_reporter.h Add a new reporter customization point: reporting all assertions 2018-07-14 20:51:02 +02:00
catch_interfaces_runner.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_runner.h Minor cleanup 2017-08-30 15:53:39 +02:00
catch_interfaces_tag_alias_registry.h Split Option<T> and TagAlias definitions away from the main include path 2017-07-27 11:55:30 +02:00
catch_interfaces_testcase.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_interfaces_testcase.h Changed some names in test case registry 2017-07-12 23:11:41 +01:00
catch_leak_detector.cpp Catch::LeakDetector: added cleanup call to destructor 2018-10-18 11:47:21 +02:00
catch_leak_detector.h Catch::LeakDetector: added cleanup call to destructor 2018-10-18 11:47:21 +02:00
catch_list.cpp https://github.com/catchorg/Catch2/issues/1175 - don't list hidden tests by default 2018-02-09 19:55:40 +01:00
catch_list.h Remove <set> include from the common test path 2017-07-27 22:31:27 +02:00
catch_matchers_floating.cpp Replace most naked throws with macros from catch_enforce.h 2018-09-03 18:07:34 +02:00
catch_matchers_floating.h Remove leftover commented out lines 2017-11-10 18:37:58 +01:00
catch_matchers_generic.cpp Add PredicateMatcher that takes an arbitrary predicate functions 2018-04-04 11:14:19 +02:00
catch_matchers_generic.hpp Add PredicateMatcher that takes an arbitrary predicate functions 2018-04-04 11:14:19 +02:00
catch_matchers_string.cpp Provide a regex matcher against std::string 2017-11-13 15:35:31 +01:00
catch_matchers_string.h Provide a regex matcher against std::string 2017-11-13 15:35:31 +01:00
catch_matchers_vector.h Fix a bug in UnorderedEqualsMatcher 2018-09-28 15:30:02 +02:00
catch_matchers.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_matchers.h Add pragma ignore for -Wnon-virtual-dtor in Catch matchers 2018-08-17 17:14:56 +02:00
catch_message.cpp CAPTURE is now variadic 2018-08-19 22:40:20 +02:00
catch_message.h CAPTURE is now variadic 2018-08-19 22:40:20 +02:00
catch_objc_arc.hpp Conditionally compile clang pragmas 2012-08-16 18:47:41 +01:00
catch_objc.hpp Fixed errors and warnings on OC project 2018-06-12 13:42:33 +01:00
catch_option.hpp General cleanup 2017-07-27 11:32:01 +02:00
catch_output_redirect.cpp Replace most naked throws with macros from catch_enforce.h 2018-09-03 18:07:34 +02:00
catch_output_redirect.h Allow disabling the implementation of the new output capture 2018-07-13 20:27:00 +02:00
catch_platform.h Detect MinGW as Windows platform w/o SEH 2018-04-22 18:46:54 +02:00
catch_random_number_generator.cpp Replaced use of std::rand with std::mt19937 2018-06-15 14:35:47 +01:00
catch_random_number_generator.h Replaced use of std::rand with std::mt19937 2018-06-15 14:35:47 +01:00
catch_reenable_warnings.h Suppress warnings correctly for Intel compiler 2015-03-04 07:54:35 +00:00
catch_registry_hub.cpp Moved ReusableStringStream impl to generic singleton 2018-08-19 11:28:46 +02:00
catch_reporter_registrars.hpp Some bits of tidy up 2017-12-07 00:02:32 +00:00
catch_reporter_registry.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_reporter_registry.h Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_result_type.cpp Manual cherry-pick from #1111 2017-12-09 20:17:47 +01:00
catch_result_type.h Manual cherry-pick from #1111 2017-12-09 20:17:47 +01:00
catch_run_context.cpp Abort when total assertions failed is greater than or equal to configured value 2018-09-22 22:39:08 +02:00
catch_run_context.h First attempt at data generator support 2018-08-24 13:31:51 +02:00
catch_section_info.cpp Deprecated description in SECTION (still accepts it, for now, but doesn't use it anywhere) 2018-06-25 19:04:29 +01:00
catch_section_info.h Restored description field in SectionInfo for now - but marked it deprecated 2018-06-25 20:18:41 +01:00
catch_section.cpp Deprecated description in SECTION (still accepts it, for now, but doesn't use it anywhere) 2018-06-25 19:04:29 +01:00
catch_section.h Stop -Wunused-variable suppression leaking out of Catch's header 2018-07-02 17:28:29 +02:00
catch_session.cpp Session::applyCommandLine overload on wchar_t (#1401) 2018-10-13 19:29:53 +02:00
catch_session.h Session::applyCommandLine overload on wchar_t (#1401) 2018-10-13 19:29:53 +02:00
catch_singletons.cpp Added generic singletons facility 2018-08-19 10:34:44 +02:00
catch_singletons.hpp Added generic singletons facility 2018-08-19 10:34:44 +02:00
catch_startup_exception_registry.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_startup_exception_registry.h Made everything used in test case registration noexcept 2017-07-13 08:25:47 +01:00
catch_stream.cpp Moved ReusableStringStream impl to generic singleton 2018-08-19 11:28:46 +02:00
catch_stream.h Moved ReusableStringStream impl to generic singleton 2018-08-19 11:28:46 +02:00
catch_string_manip.cpp Moved inline functions in cpp files into anon namespaces 2018-06-12 14:09:30 +01:00
catch_string_manip.h Split out helper functions on std::string from catch_common.h 2017-07-25 21:57:35 +02:00
catch_stringref.cpp Provide a public method to get StringRef's underlying pointer 2018-02-28 22:49:00 +01:00
catch_stringref.h Introduce "C-namespaced" UDL for StringRef 2018-07-23 14:00:45 +02:00
catch_suppress_warnings.h Add comment explaining why we leak -Wparentheses under g++ 2018-07-02 17:28:45 +02:00
catch_tag_alias_autoregistrar.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_tag_alias_autoregistrar.h Stop leaking some warning suppressions to user code 2017-11-29 19:14:33 +03:00
catch_tag_alias_registry.cpp Introduced ReusableStringStream and removed all uses of std::ostringstream from the main path 2017-11-07 18:01:10 +00:00
catch_tag_alias_registry.h Split Option<T> and TagAlias definitions away from the main include path 2017-07-27 11:55:30 +02:00
catch_tag_alias.cpp Split Option<T> and TagAlias definitions away from the main include path 2017-07-27 11:55:30 +02:00
catch_tag_alias.h Split Option<T> and TagAlias definitions away from the main include path 2017-07-27 11:55:30 +02:00
catch_test_case_info.cpp Moved inline functions in cpp files into anon namespaces 2018-06-12 14:09:30 +01:00
catch_test_case_info.h Cleanup for performance reasons 2018-03-02 16:24:35 +01:00
catch_test_case_registry_impl.cpp Replaced use of std::rand with std::mt19937 2018-06-15 14:35:47 +01:00
catch_test_case_registry_impl.h Cleanup for performance reasons 2018-03-02 16:24:35 +01:00
catch_test_case_tracker.cpp First attempt at data generator support 2018-08-24 13:31:51 +02:00
catch_test_case_tracker.h First attempt at data generator support 2018-08-24 13:31:51 +02:00
catch_test_registry.cpp Add support for -fno-exceptions (or equivalent) 2018-09-03 21:08:27 +02:00
catch_test_registry.h Direct construct empty StringRef in test macros 2018-07-22 14:13:34 +02:00
catch_test_spec_parser.cpp Changed all .hpp extensions to .h where there is now a corresponding .cpp 2017-09-07 11:24:33 +01:00
catch_test_spec_parser.h qualified a load of size_ts with std:: namespace (all those not from Clara) 2017-09-18 17:13:17 +01:00
catch_test_spec.cpp Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_test_spec.h Sweep out some extra warnings 2017-09-07 17:25:15 +02:00
catch_text.h Removed tbc_text_format (superceded by TextFlow) 2017-07-20 23:20:42 +01:00
catch_timer.cpp Moved inline functions in cpp files into anon namespaces 2018-06-12 14:09:30 +01:00
catch_timer.h Increased int size for timers to avoid truncations 2017-12-08 15:59:00 +00:00
catch_to_string.hpp Provide a polyfill over std::to_string 2018-05-09 21:47:42 +02:00
catch_tostring.cpp Fix convert from char on ARM build 2018-10-13 12:56:05 +02:00
catch_tostring.h Fix different operator<< overload sets used for SFINAE and insertion 2018-10-13 16:53:30 +02:00
catch_totals.cpp Changed all .hpp extensions to .h where there is now a corresponding .cpp 2017-09-07 11:24:33 +01:00
catch_totals.h Add option to warn when no tests ran 2018-02-09 18:49:36 +01:00
catch_uncaught_exceptions.cpp Remove superfluous comment 2018-02-08 13:09:02 +01:00
catch_uncaught_exceptions.h Redirect std::uncaught_exception to Catch::uncaught_exception 2018-02-02 15:36:15 +01:00
catch_user_interfaces.h Introduce a way to intentionally expose interface for use in tests 2017-11-21 11:10:07 +01:00
catch_version.cpp v2.4.1 2018-09-28 15:52:51 +02:00
catch_version.h Address results of PVS-Studio static analysis 2017-07-20 00:27:28 +02:00
catch_wildcard_pattern.cpp Introduced ReusableStringStream and removed all uses of std::ostringstream from the main path 2017-11-07 18:01:10 +00:00
catch_wildcard_pattern.h Changed all .hpp extensions to .h where there is now a corresponding .cpp 2017-09-07 11:24:33 +01:00
catch_windows_h_proxy.h unconditional windows proxy 2017-10-11 14:58:20 +01:00
catch_xmlwriter.cpp Modify XML encoder to hex-encode invalid UTF-8 sequences 2018-03-27 16:49:14 +02:00
catch_xmlwriter.h Modify XML encoder to hex-encode invalid UTF-8 sequences 2018-03-27 16:49:14 +02:00