================
@@ -393,7 +392,7 @@ def update_checks_list(clang_tidy_path: str) -> None:
lambda s: os.path.isdir(os.path.join(docs_dir, s)),
os.listdir(docs_dir)
):
for file in filter(
- lambda s: s.endswith(".rst"), os.listdir(os.path.join(docs_dir,
subdir))
+ methodcaller("endswith", ".rst"),
os.listdir(os.path.join(docs_dir, subdir))
----------------
localspook wrote:
> Same things could be said about STL versus plain loops :-)
See, I *would* argue that STL algorithms can be overused too (e.g. I would
argue for a plain `for` over `std::ranges::for_each`)
https://github.com/llvm/llvm-project/pull/176927
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits