[libc-commits] [clang-tools-extra] [libc] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 22 14:49:11 PDT 2024
================
@@ -235,3 +276,13 @@ void Negative() {
if (MACRO(x) == nullptr)
;
}
+
+void test_redundant_get() {
+ std::vector<std::shared_ptr<int>> v;
+ auto f = [](int) {};
+ for (auto i = v.begin(); i != v.end(); ++i) {
+ f(*i->get());
----------------
akshaykumars614 wrote:
tried with that, I was able to reproduce the warning but getting error in lambda.
https://godbolt.org/z/je8f637vb
https://github.com/llvm/llvm-project/pull/98757
More information about the libc-commits
mailing list