Clang: Improve modified timer checker

Make the algorithm a little bit more clear.

Change-Id: I71b04cdd947272edf9fade8f93b7300a945a2fc8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-16 20:42:54 +02:00
parent 8c1b803fad
commit 4e5e4899d5
3 changed files with 21 additions and 10 deletions

View File

@@ -89,13 +89,13 @@ bool set_intersection_compare(
++first1;
} else {
if (!comp(*first2, *first1)) {
if (call(*first2, *first1++))
return false;
if (call(*first1++, *first2))
return true;
}
++first2;
}
}
return true;
return false;
}
} // namespace ClangBackEnd