[analyzer] Allow CFG dumps in release builds
authorBalazs Benics <balazs.benics@sigmatechnology.se>
Mon, 2 May 2022 09:48:52 +0000 (11:48 +0200)
committerBalazs Benics <balazs.benics@sigmatechnology.se>
Mon, 2 May 2022 09:48:52 +0000 (11:48 +0200)
commit29dff0d4fb46fe8f1e9774fd5e64d3e07937ff35
tree31b6cec112be088c552319594cccfaddf44749a3
parent5ce7050f701c6907cc2522fc43d39a8cbcc119d2
[analyzer] Allow CFG dumps in release builds

This is a similar commit to D124442, but for CFG dumps.
The binary size diff remained the same demonstrated in that patch.

This time I'm adding tests for demonstrating that all the dump debug
checkers work - even in regular builds without asserts.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D124443
clang/lib/Analysis/CFG.cpp
clang/test/Analysis/debug-checkers.cpp [new file with mode: 0644]