diff options
Diffstat (limited to 'lib/clang/12.0.0/include/sanitizer/coverage_interface.h')
| -rw-r--r-- | lib/clang/12.0.0/include/sanitizer/coverage_interface.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/clang/12.0.0/include/sanitizer/coverage_interface.h b/lib/clang/12.0.0/include/sanitizer/coverage_interface.h new file mode 100644 index 0000000..c063cfe --- /dev/null +++ b/lib/clang/12.0.0/include/sanitizer/coverage_interface.h @@ -0,0 +1,35 @@ +//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// Public interface for sanitizer coverage. +//===----------------------------------------------------------------------===// + +#ifndef SANITIZER_COVERAG_INTERFACE_H +#define SANITIZER_COVERAG_INTERFACE_H + +#include <sanitizer/common_interface_defs.h> + +#ifdef __cplusplus +extern "C" { +#endif + + // Record and dump coverage info. + void __sanitizer_cov_dump(void); + + // Clear collected coverage info. + void __sanitizer_cov_reset(void); + + // Dump collected coverage info. Sorts pcs by module into individual .sancov + // files. + void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // SANITIZER_COVERAG_INTERFACE_H |
