blob: d8c7ec7884c831a0d800c28efb558743b6a30279 [file] [log] [blame]
.. title:: clang-tidy - readability-redundant-function-ptr-dereference
readability-redundant-function-ptr-dereference
==============================================
Finds redundant dereferences of a function pointer.
Before:
.. code-block:: c++
int f(int,int);
int (*p)(int, int) = &f;
int i = (**p)(10, 50);
After:
.. code-block:: c++
int f(int,int);
int (*p)(int, int) = &f;
int i = (*p)(10, 50);