================ @@ -0,0 +1,69 @@ +.. title:: clang-tidy - bugprone-missing-end-comparison + +bugprone-missing-end-comparison +=============================== + +Finds instances where the result of a standard algorithm is used in a boolean +context without being compared to the end iterator. + +Standard algorithms such as `std::find`, `std::search`, and `std::lower_bound` +return an iterator to the element if found, or the end iterator otherwise. + +Using the result directly in a boolean context (like an `if` statement) is ---------------- EugeneZelenko wrote:
```suggestion Using the result directly in a Boolean context (like an ``if`` statement) is ``` https://github.com/llvm/llvm-project/pull/182543 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
