Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dashboards-table
- Loading branch information
Showing
665 changed files
with
17,761 additions
and
4,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
#pragma once | ||
|
||
#include <span> | ||
#include <cstdint> | ||
|
||
/// Flush coverage report to file, depending on coverage system | ||
/// proposed by compiler (llvm for clang and gcov for gcc). | ||
/// | ||
/// Noop if build without coverage (WITH_COVERAGE=0). | ||
/// Thread safe (use exclusive lock). | ||
/// Idempotent, may be called multiple times. | ||
void dumpCoverageReportIfPossible(); | ||
|
||
/// This is effective if SANITIZE_COVERAGE is enabled at build time. | ||
/// Get accumulated unique program addresses of the instrumented parts of the code, | ||
/// seen so far after program startup or after previous reset. | ||
/// The returned span will be represented as a sparse map, containing mostly zeros, which you should filter away. | ||
std::span<const uintptr_t> getCoverage(); | ||
|
||
/// Get all instrumented addresses that could be in the coverage. | ||
std::span<const uintptr_t> getAllInstrumentedAddresses(); | ||
|
||
/// Reset the accumulated coverage. | ||
/// This is useful to compare coverage of different tests, including differential coverage. | ||
void resetCoverage(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_library(harmful harmful.c) | ||
install(TARGETS harmful EXPORT global ARCHIVE DESTINATION lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.