Files
tubestation/tools/clang-tidy/test/readability-redundant-smartptr-get.cpp

12 lines
132 B
C++

#include <memory>
struct A {
void f() {}
};
void foo() {
std::unique_ptr<A> ptr = std::make_unique<A>();
ptr.get()->f();
}