Coverage Report

Created: 2026-02-09 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmExternalMakefileProjectGenerator.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 "cmExternalMakefileProjectGenerator.h"
4
5
#include <utility>
6
7
#include "cmStringAlgorithms.h"
8
9
class cmMakefile;
10
11
void cmExternalMakefileProjectGenerator::EnableLanguage(
12
  std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
13
  bool /*unused*/)
14
0
{
15
0
}
16
17
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
18
  std::string const& globalGenerator, std::string const& extraGenerator)
19
0
{
20
0
  if (globalGenerator.empty()) {
21
0
    return {};
22
0
  }
23
0
  if (extraGenerator.empty()) {
24
0
    return globalGenerator;
25
0
  }
26
0
  return cmStrCat(extraGenerator, " - ", globalGenerator);
27
0
}
28
29
bool cmExternalMakefileProjectGenerator::Open(
30
  std::string const& /*bindir*/, std::string const& /*projectName*/,
31
  bool /*dryRun*/)
32
0
{
33
0
  return false;
34
0
}
35
36
cmExternalMakefileProjectGeneratorFactory::
37
  cmExternalMakefileProjectGeneratorFactory(std::string n, std::string doc)
38
5
  : Name(std::move(n))
39
5
  , Documentation(std::move(doc))
40
5
{
41
5
}
42
43
cmExternalMakefileProjectGeneratorFactory::
44
5
  ~cmExternalMakefileProjectGeneratorFactory() = default;
45
46
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
47
0
{
48
0
  return this->Name;
49
0
}
50
51
std::string cmExternalMakefileProjectGeneratorFactory::GetDocumentation() const
52
0
{
53
0
  return this->Documentation;
54
0
}
55
56
std::vector<std::string>
57
cmExternalMakefileProjectGeneratorFactory::GetSupportedGlobalGenerators() const
58
175
{
59
175
  return this->SupportedGlobalGenerators;
60
175
}
61
62
void cmExternalMakefileProjectGeneratorFactory::AddSupportedGlobalGenerator(
63
  std::string const& base)
64
11
{
65
11
  this->SupportedGlobalGenerators.push_back(base);
66
11
}