absl::LeakCheckerIsActive

Returns true if a leak-checking sanitizer (either ASan or standalone LSan) is currently built into this target and is turned on.

Synopsis

Declared in <absl/debugging/leak_check.h>

bool
LeakCheckerIsActive();

Return Value

True if a leak-checking sanitizer is built in and active.