| 52 | }; |
| 53 | |
| 54 | class cmListFileFunction |
| 55 | { |
| 56 | public: |
| 57 | cmListFileFunction(std::string name, long line, long lineEnd, |
| 58 | std::vector<cmListFileArgument> args) |
| 59 | : Impl{ std::make_shared<Implementation>(std::move(name), line, lineEnd, |
| 60 | std::move(args)) } |
| 61 | { |
| 62 | } |
| 63 | |
| 64 | std::string const& OriginalName() const noexcept |
| 65 | { |
| 66 | return this->Impl->OriginalName; |
| 67 | } |
| 68 | |
| 69 | std::string const& LowerCaseName() const noexcept |
| 70 | { |
| 71 | return this->Impl->LowerCaseName; |
| 72 | } |
| 73 | |
| 74 | long Line() const noexcept { return this->Impl->Line; } |
| 75 | long LineEnd() const noexcept { return this->Impl->LineEnd; } |
| 76 | |
| 77 | std::vector<cmListFileArgument> const& Arguments() const noexcept |
| 78 | { |
| 79 | return this->Impl->Arguments; |
| 80 | } |
| 81 | |
| 82 | private: |
| 83 | struct Implementation |
| 84 | { |
| 85 | Implementation(std::string name, long line, long lineEnd, |
| 86 | std::vector<cmListFileArgument> args) |
| 87 | : OriginalName{ std::move(name) } |
| 88 | , LowerCaseName{ cmSystemTools::LowerCase(this->OriginalName) } |
| 89 | , Line{ line } |
| 90 | , LineEnd{ lineEnd } |
| 91 | , Arguments{ std::move(args) } |
| 92 | { |
| 93 | } |
| 94 | |
| 95 | std::string OriginalName; |
| 96 | std::string LowerCaseName; |
| 97 | long Line = 0; |
| 98 | long LineEnd = 0; |
| 99 | std::vector<cmListFileArgument> Arguments; |
| 100 | }; |
| 101 | |
| 102 | std::shared_ptr<Implementation const> Impl; |
| 103 | }; |
| 104 | |
| 105 | class cmListFileContext |
| 106 | { |
no outgoing calls
searching dependent graphs…