Coverage Report

Created: 2026-10-28 06:38

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmPlaceholderExpander.h
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
4
#pragma once
5
6
#include "cmConfigure.h" // IWYU pragma: keep
7
8
#include <string>
9
10
class cmPlaceholderExpander
11
{
12
public:
13
  enum class HandleGenex
14
  {
15
    No,
16
    Yes
17
  };
18
19
0
  virtual ~cmPlaceholderExpander() = default;
20
21
  std::string& ExpandVariables(std::string& string,
22
                               HandleGenex handleGenex = HandleGenex::No);
23
24
protected:
25
  virtual std::string ExpandVariable(std::string const& variable) = 0;
26
};