1.. title:: clang-tidy - readability-redundant-function-ptr-dereference
2
3readability-redundant-function-ptr-dereference
4==============================================
5
6Finds redundant dereferences of a function pointer.
7
8Before:
9
10.. code-block:: c++
11
12  int f(int,int);
13  int (*p)(int, int) = &f;
14
15  int i = (**p)(10, 50);
16
17After:
18
19.. code-block:: c++
20
21  int f(int,int);
22  int (*p)(int, int) = &f;
23
24  int i = (*p)(10, 50);
25