Coverage Report

Created: 2026-10-28 06:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmCustomRule.cxx
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details.  */
3
#include <string>
4
#include <utility>
5
#include <vector>
6
7
#include "cmRule.h"
8
9
class cmMakefile;
10
11
cmCustomRule::cmCustomRule(cmMakefile& makefile, std::string name,
12
                           CustomCommands commands,
13
                           std::vector<std::string> outputs,
14
                           cm::RuleScope scope)
15
0
  : cmRule(makefile, name, scope)
16
0
  , Commands(std::move(commands))
17
0
  , Outputs(std::move(outputs))
18
0
{
19
0
}
20
21
cmCustomRule::CustomCommands const& cmCustomRule::GetCommands() const
22
0
{
23
0
  return this->Commands;
24
0
}
25
std::vector<std::string> const& cmCustomRule::GetOutputs() const
26
0
{
27
0
  return this->Outputs;
28
0
}
29
30
void cmCustomRule::SetByproducts(std::vector<std::string> byproducts)
31
0
{
32
0
  this->Byproducts = std::move(byproducts);
33
0
}
34
std::vector<std::string> const& cmCustomRule::GetByproducts() const
35
0
{
36
0
  return this->Byproducts;
37
0
}
38
39
void cmCustomRule::SetDepends(std::vector<std::string> depends)
40
0
{
41
0
  this->Depends = std::move(depends);
42
0
}
43
std::vector<std::string> const& cmCustomRule::GetDepends() const
44
0
{
45
0
  return this->Depends;
46
0
}
47
48
void cmCustomRule::SetDepfile(std::string depfile)
49
0
{
50
0
  this->Depfile = std::move(depfile);
51
0
}
52
std::string const& cmCustomRule::GetDepfile() const
53
0
{
54
0
  return this->Depfile;
55
0
}