MCPcopy Create free account
hub / github.com/Kitware/CMake / IsAnyLogVersionEnabled

Method IsAnyLogVersionEnabled

Source/cmConfigureLog.cxx:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool 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
66void cmConfigureLog::WriteBacktrace(cmMakefile const& mf)
67{

Callers 3

WriteTryCompileEventFunction · 0.80
WriteMessageEventFunction · 0.80
WriteTryRunEventFunction · 0.80

Calls 2

cbeginMethod · 0.80
cendMethod · 0.80

Tested by

no test coverage detected