/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 | 0 | virtual ~cmPlaceholderExpander() = default; |
14 | | |
15 | | std::string& ExpandVariables(std::string& string); |
16 | | |
17 | | protected: |
18 | | virtual std::string ExpandVariable(std::string const& variable) = 0; |
19 | | }; |