| /openbsd-src/gnu/llvm/llvm/tools/llvm-cov/ |
| H A D | CoverageFilters.cpp | 21 const coverage::CoverageMapping &, in matches() 22 const coverage::FunctionRecord &Function) const { in matches() 28 const coverage::CoverageMapping &, in matches() 29 const coverage::FunctionRecord &Function) const { in matches() 38 const coverage::CoverageMapping &, in matches() 39 const coverage::FunctionRecord &Function) const { in matches() 44 const coverage::CoverageMapping &CM, in matches() 45 const coverage::FunctionRecord &Function) const { in matches() 51 const coverage::CoverageMapping &CM, in matches() 52 const coverage::FunctionRecord &Function) const { in matches() [all …]
|
| H A D | CoverageFilters.h | 23 namespace coverage { 34 virtual bool matches(const coverage::CoverageMapping &CM, in matches() 35 const coverage::FunctionRecord &Function) const { in matches() 52 bool matches(const coverage::CoverageMapping &CM, 53 const coverage::FunctionRecord &Function) const override; 63 bool matches(const coverage::CoverageMapping &CM, 64 const coverage::FunctionRecord &Function) const override; 78 bool matches(const coverage::CoverageMapping &CM, 79 const coverage::FunctionRecord &Function) const override; 115 bool matches(const coverage::CoverageMapping &CM, [all …]
|
| H A D | CoverageExporterLcov.cpp | 57 const iterator_range<coverage::FunctionRecordIterator> &Functions) { in renderFunctions() 67 const coverage::CoverageData &FileCoverage) { in renderLineExecutionCounts() 68 coverage::LineCoverageIterator LCI{FileCoverage, 1}; in renderLineExecutionCounts() 69 coverage::LineCoverageIterator LCIEnd = LCI.getEnd(); in renderLineExecutionCounts() 71 const coverage::LineCoverageStats &LCS = *LCI; in renderLineExecutionCounts() 78 std::vector<llvm::coverage::CountedRegion> 79 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches() 80 ArrayRef<llvm::coverage::ExpansionRecord> Expansions, in collectNestedBranches() 82 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches() 108 bool sortLine(llvm::coverage::CountedRegion I, in sortLine() [all …]
|
| H A D | CoverageExporterJson.cpp | 79 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment() 85 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion() 92 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch() 100 json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderRegions() 107 json::Array renderBranchRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderBranchRegions() 115 std::vector<llvm::coverage::CountedRegion> 116 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches() 117 ArrayRef<llvm::coverage::ExpansionRecord> Expansions) { in collectNestedBranches() 118 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches() 137 json::Object renderExpansion(const coverage::CoverageMapping &Coverage, in renderExpansion() [all …]
|
| H A D | CoverageReport.h | 25 const coverage::CoverageMapping &Coverage; 33 const coverage::CoverageMapping &Coverage) in CoverageReport() 41 prepareFileReports(const coverage::CoverageMapping &Coverage, 48 const coverage::CoverageMapping *Coverage,
|
| H A D | SourceCoverageViewHTML.h | 20 using namespace coverage; variable 33 const coverage::CoverageMapping &Coverage, 93 coverage::CoverageData &&CoverageInfo) in SourceCoverageViewHTML()
|
| H A D | CoverageExporter.h | 27 const coverage::CoverageMapping &Coverage; 35 CoverageExporter(const coverage::CoverageMapping &CoverageMapping, in CoverageExporter()
|
| /openbsd-src/gnu/llvm/llvm/utils/lit/utils/ |
| H A D | check-coverage | 32 rm -f tests/.coverage 33 find tests -name .coverage.\* -exec rm {} \; 36 lit -sv --param check-coverage=1 "$@" 39 find tests/* -name .coverage.\* -exec mv {} tests \; 42 (cd tests && python -m coverage combine) 45 (cd tests && python -m coverage report) 49 (cd tests && python -m coverage html)
|
| /openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
| H A D | llvm-cov.rst | 1 llvm-cov - emit coverage information 14 The :program:`llvm-cov` tool shows code coverage information for 16 work with ``gcov``\-style coverage or with ``clang``\'s instrumentation 46 The :program:`llvm-cov gcov` tool reads code coverage data files and displays 47 the coverage information for a specified source file. It is compatible with the 52 of your application that collects coverage data as it runs. Compile with the 53 ``-fprofile-arcs`` and ``-ftest-coverage`` options to add the 54 instrumentation. (Alternatively, you can use the ``--coverage`` option, which 59 coverage data. The other half of the data comes from ``.gcda`` files that are 76 Once you have generated the coverage data files, run :program:`llvm-cov gcov` [all …]
|
| H A D | llvm-locstats.rst | 48 compare the debug location coverage on two files provided, and draw 60 Pretty print the location coverage on the standard output. 106 coverage.
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/asan/ |
| H A D | asan_activation.cpp | 30 bool coverage; member 56 cf.coverage = coverage; in OverrideFromActivationFlags() 75 coverage = cf.coverage; in OverrideFromActivationFlags() 89 allocator_options.may_return_null, coverage, coverage_dir, in Print() 104 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
|
| /openbsd-src/gnu/llvm/clang/docs/ |
| H A D | SourceBasedCodeCoverage.rst | 11 This document explains how to use clang's source-based code coverage feature. 13 information directly. This allows it to generate very precise coverage data. 15 Clang ships two other code coverage implementations: 18 various sanitizers. It can provide up to edge-level coverage. 20 * gcov - A GCC-compatible coverage implementation which operates on DebugInfo. 21 This is enabled by ``-ftest-coverage`` or ``--coverage``. 23 From this point onwards "code coverage" will refer to the source-based kind. 25 The code coverage workflow 28 The code coverage workflow consists of three main steps: 30 * Compiling with coverage enabled. [all …]
|
| H A D | SanitizerCoverage.rst | 11 LLVM has a simple code coverage instrumentation built in (SanitizerCoverage). 14 simple coverage reporting and visualization, 15 however if you need *just* coverage visualization you may want to use 21 With ``-fsanitize-coverage=trace-pc-guard`` the compiler will insert the following code 100 clang++ -g -fsanitize-coverage=trace-pc-guard trace-pc-guard-example.cc -c 127 With ``-fsanitize-coverage=inline-8bit-counters`` the compiler will insert 129 This is similar to ``-fsanitize-coverage=trace-pc-guard`` but instead of a 148 With ``-fsanitize-coverage=inline-bool-flag`` the compiler will insert 150 This is similar to ``-fsanitize-coverage=inline-8bit-counter`` but instead of 174 With ``-fsanitize-coverage=pc-table`` the compiler will create a table of [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | gcov.c | 242 coverage_t coverage; member 524 coverage_t coverage; in process_file() local 526 memset (&coverage, 0, sizeof (coverage)); in process_file() 527 coverage.name = fn->name; in process_file() 528 add_line_counts (flag_function_summary ? &coverage : NULL, fn); in process_file() 531 function_summary (&coverage, "Function"); in process_file() 539 function_summary (&src->coverage, "File"); in process_file() 686 src->coverage.name = src->name; in find_source() 1311 add_branch_counts (coverage_t *coverage, const arc_t *arc) in add_branch_counts() argument 1315 coverage->calls++; in add_branch_counts() [all …]
|
| /openbsd-src/gnu/llvm/llvm/cmake/modules/ |
| H A D | CoverageReport.cmake | 1 # if coverage reports are not enabled, skip all of this 7 "${LLVM_SOURCE_DIR}/utils/prepare-code-coverage-artifact.py" 18 …message(WARNING "Could not find code coverage tools, skipping generating targets. You may explicit… 22 set(LLVM_CODE_COVERAGE_TARGETS "" CACHE STRING "Targets to run code coverage on (defaults to all ex… 26 # by default run the coverage report across all the exports provided 41 set(LLVM_COVERAGE_SOURCE_DIRS "" CACHE STRING "Source directories to restrict coverage reports to.") 57 # automaticall plumb through the targets that we want to run coverage against. 58 add_custom_target(generate-coverage-report
|
| /openbsd-src/gnu/llvm/llvm/docs/ |
| H A D | CoverageMappingFormat.rst | 14 LLVM's code coverage mapping format is used to provide code coverage 18 This document is aimed at those who would like to know how LLVM's code coverage 21 LLVM to provide code coverage analysis for their own programs, see the `Clang 24 We start by briefly describing LLVM's code coverage mapping format and the 25 way that Clang and LLVM's code coverage tool work with this format. After 26 the basics are down, more advanced features of the coverage mapping format 33 LLVM's code coverage mapping format is designed to be a self contained 36 to store the data that is required for a code coverage tool to map between 40 The mapping data is used in two places in the code coverage process: 51 After that, the tool is able to generate various code coverage reports [all …]
|
| H A D | HowToBuildWithPGO.rst | 50 By default, the script above does two things to get solid coverage. It: 58 - solid coverage of building C++, 59 - good coverage of building C, 60 - great coverage of running optimizations, 61 - great coverage of the backend for your host's architecture, and 62 - some coverage of other architectures (if other arches are supported backends). 129 ``-DCMAKE_BUILD_TYPE=Release``. This will grant better coverage of 134 since more coverage is often better. 167 this for coverage as part of step 3, none of your other builds should benefit
|
| /openbsd-src/gnu/llvm/llvm/bindings/python/ |
| H A D | README.txt | 40 You should strive for high code coverage. To see current coverage: 42 pip install coverage 43 nosetests --with-coverage --cover-html 45 Then open cover/index.html in your browser of choice to see the code coverage.
|
| /openbsd-src/gnu/llvm/libcxx/ |
| H A D | .gitignore | 29 # Unit test / coverage reports 32 .coverage 35 coverage.xml
|
| /openbsd-src/gnu/llvm/libcxxabi/ |
| H A D | .gitignore | 39 # Unit test / coverage reports 42 .coverage 45 coverage.xml
|
| /openbsd-src/gnu/llvm/libcxx/cmake/Modules/ |
| H A D | CodeCoverage.cmake | 16 set(CMAKE_CXX_FLAGS_COVERAGE "-g -O0 --coverage") 42 add_custom_target(generate-lib${target_name}-coverage 49 COMMENT "Generating coverage results")
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | gcov.c | 170 struct coverage struct 267 static void accumulate_branch_counts PARAMS ((struct coverage *, 271 struct coverage *)); 272 static void function_summary PARAMS ((struct coverage *, const char *)); 274 struct coverage *, long)); 276 const struct coverage *, long)); 1077 struct coverage *function; in accumulate_branch_counts() 1103 struct coverage *function; 1182 struct coverage *function; in function_summary() 1299 struct coverage *total; [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | CodeGenOptions.def | 87 CODEGENOPT(EmitGcovArcs , 1, 0) ///< Emit coverage data files, aka. GCDA. 88 CODEGENOPT(EmitGcovNotes , 1, 0) ///< Emit coverage "notes" files, aka GCNO. 220 CODEGENOPT(CoverageMapping , 1, 0) ///< Generate coverage mapping regions to 221 ///< enable code coverage analysis. 222 CODEGENOPT(DumpCoverageMapping , 1, 0) ///< Dump the generated coverage mapping 262 CODEGENOPT(SanitizeCoverageType, 2, 0) ///< Type of sanitizer coverage 264 CODEGENOPT(SanitizeCoverageIndirectCalls, 1, 0) ///< Enable sanitizer coverage 267 ///< in sanitizer coverage. 269 ///< in sanitizer coverage. 271 ///< in sanitizer coverage. [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_coverage_fuchsia.cpp | 74 if (end > start && *start == 0 && common_flags()->coverage) { in InitTracePcGuard() 130 DCHECK(common_flags()->coverage); in Setup() 200 CHECK_EQ(enabled, common_flags()->coverage); in InitializeCoverage()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IPC-SysV/t/ |
| H A D | podcov.t | 32 plan skip_all => "testing pod coverage requires Pod::Coverage 0.10" if $@; 35 plan skip_all => "testing pod coverage requires Test::Pod::Coverage 1.08" if $@;
|