| 149 | } |
| 150 | |
| 151 | static cmListFileContext FromListFileFunction( |
| 152 | cmListFileFunction const& lff, std::string const& fileName, |
| 153 | cm::optional<std::string> deferId = {}) |
| 154 | { |
| 155 | cmListFileContext lfc; |
| 156 | lfc.FilePath = fileName; |
| 157 | lfc.Line = lff.Line(); |
| 158 | lfc.Name = lff.OriginalName(); |
| 159 | lfc.DeferId = std::move(deferId); |
| 160 | return lfc; |
| 161 | } |
| 162 | }; |
| 163 | |
| 164 | std::ostream& operator<<(std::ostream&, cmListFileContext const&); |