| 46 | } |
| 47 | |
| 48 | bool cmConfigureLog::IsAnyLogVersionEnabled( |
| 49 | std::vector<unsigned int> const& v) const |
| 50 | { |
| 51 | // Both input lists are sorted. Look for a matching element. |
| 52 | auto i1 = v.cbegin(); |
| 53 | auto i2 = this->LogVersions.cbegin(); |
| 54 | while (i1 != v.cend() && i2 != this->LogVersions.cend()) { |
| 55 | if (*i1 < *i2) { |
| 56 | ++i1; |
| 57 | } else if (*i2 < *i1) { |
| 58 | ++i2; |
| 59 | } else { |
| 60 | return true; |
| 61 | } |
| 62 | } |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | void cmConfigureLog::WriteBacktrace(cmMakefile const& mf) |
| 67 | { |
no test coverage detected