llvm-project
1be4c971 - [clang-tidy][readability-container-contains] Extend to any class with contains (#107521)

Commit
1 year ago
[clang-tidy][readability-container-contains] Extend to any class with contains (#107521) This check will now work out of the box with other containers that have a `contains` method, such as `folly::F14` or Abseil containers. It will also work with strings, which are basically just weird containers. `std::string` and `std::string_view` will have a `contains` method starting with C++23. `llvm::StringRef` and `folly::StringPiece` are examples of existing implementations with a `contains` method.
Author
Parents
Loading