Home | History | Annotate | Download | only in llvm-cov

Lines Matching refs:Function

1 //===- CoverageFilters.cpp - Function coverage mapping filters ------------===//
10 // These classes provide filtering for function coverage mapping records.
20 bool NameCoverageFilter::matches(const coverage::FunctionRecord &Function) {
21 StringRef FuncName = Function.Name;
26 NameRegexCoverageFilter::matches(const coverage::FunctionRecord &Function) {
27 return llvm::Regex(Regex).match(Function.Name);
30 bool RegionCoverageFilter::matches(const coverage::FunctionRecord &Function) {
31 return PassesThreshold(FunctionCoverageSummary::get(Function)
35 bool LineCoverageFilter::matches(const coverage::FunctionRecord &Function) {
37 FunctionCoverageSummary::get(Function).LineCoverage.getPercentCovered());
44 bool CoverageFilters::matches(const coverage::FunctionRecord &Function) {
46 if (Filter->matches(Function))
53 CoverageFiltersMatchAll::matches(const coverage::FunctionRecord &Function) {
55 if (!Filter->matches(Function))