Debian Codegraph @

llvm-project/clang-tools-extra/docs/clang-tidy/checks/readability/redundant-function-ptr-dereference.rst

raw
1 .. title:: clang-tidy - readability-redundant-function-ptr-dereference
2
3 readability-redundant-function-ptr-dereference
4 ==============================================
5
6 Finds redundant dereferences of a function pointer.
7
8 Before:
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
17 After:
18
19 .. code-block:: c++
20
21 int f(int,int);
22 int (*p)(int, int) = &f;
23
24 int i = (*p)(10, 50);