forked from OSchip/llvm-project
19 lines
409 B
ReStructuredText
19 lines
409 B
ReStructuredText
.. title:: clang-tidy - readability-redundant-smartptr-get
|
|
|
|
readability-redundant-smartptr-get
|
|
==================================
|
|
|
|
`google-readability-redundant-smartptr-get` redirects here as an alias for this
|
|
check.
|
|
|
|
Find and remove redundant calls to smart pointer's ``.get()`` method.
|
|
|
|
Examples:
|
|
|
|
.. code-block:: c++
|
|
|
|
ptr.get()->Foo() ==> ptr->Foo()
|
|
*ptr.get() ==> *ptr
|
|
*ptr->get() ==> **ptr
|
|
|