[clang-tools-extra] [libc] clang-tidy: readability-redundant-smartptr-get does not remove -> (#97964) (PR #98757)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 23 11:39:33 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:

@PiotrZSL I have raised new pull request since rebased master by mistake and there are log of commits rebased. I will close this once you approve the new pull request.
New pull request: https://github.com/llvm/llvm-project/pull/100177

https://github.com/llvm/llvm-project/pull/98757


More information about the cfe-commits mailing list