| 1396 | }; |
| 1397 | |
| 1398 | struct TargetPropertyEntryFinder |
| 1399 | { |
| 1400 | private: |
| 1401 | cmSourceFileLocation const& Needle; |
| 1402 | |
| 1403 | public: |
| 1404 | TargetPropertyEntryFinder(cmSourceFileLocation const& needle) |
| 1405 | : Needle(needle) |
| 1406 | { |
| 1407 | } |
| 1408 | |
| 1409 | bool operator()(BT<std::string> const& entry) |
| 1410 | { |
| 1411 | cmList files{ entry.Value }; |
| 1412 | std::vector<cmSourceFileLocation> locations; |
| 1413 | locations.reserve(files.size()); |
| 1414 | std::transform(files.begin(), files.end(), std::back_inserter(locations), |
| 1415 | CreateLocation(this->Needle.GetMakefile())); |
| 1416 | |
| 1417 | return std::find_if(locations.begin(), locations.end(), |
| 1418 | LocationMatcher(this->Needle)) != locations.end(); |
| 1419 | } |
| 1420 | }; |
| 1421 | |
| 1422 | cmSourceFile* cmTarget::AddSource(std::string const& src, bool before) |
| 1423 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…