hackingcpp / comments

Comments regarding hackingcpp.com
0 stars 0 forks source link

cpp/diagnostics #49

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

C++ Diagnostic Basics: Warnings, Assertions, Testing | hacking C++

Basic techniques and tools for ensuring correctness: compiler warnings (gcc/clang/MSVC), assertions (assert/static_assert) and testing (with some doctest examples).

https://hackingcpp.com/cpp/diagnostics.html

Lysias-1998 commented 5 months ago

Although ASAN performs binary instrumentation at compile time, and Valgrind performs it at runtime, both tools require the program to be executed to detect bugs, categorizing them as dynamic analysis tools. CppCheck is an example of a static analysis tool.