Home
last modified time | relevance | path

Searched refs:RunOnDestruction (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtilFuchsia.cpp456 class RunOnDestruction { class
458 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function in fuzzer::RunOnDestruction
459 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()
466 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()
467 return RunOnDestruction<Fn>(fn); in at_scope_exit()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.h1048 class RunOnDestruction {
1050 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function
1051 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()
1060 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()
1061 return RunOnDestruction<Fn>(fn); in at_scope_exit()