Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerUtilFuchsia.cpp406 class RunOnDestruction { class
408 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function in fuzzer::RunOnDestruction
409 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()
416 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()
417 return RunOnDestruction<Fn>(fn); in at_scope_exit()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.h1026 class RunOnDestruction {
1028 explicit RunOnDestruction(Fn fn) : fn_(fn) {} in RunOnDestruction() function
1029 ~RunOnDestruction() { fn_(); } in ~RunOnDestruction()
1038 RunOnDestruction<Fn> at_scope_exit(Fn fn) { in at_scope_exit()
1039 return RunOnDestruction<Fn>(fn); in at_scope_exit()