[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang-tools-extra / docs / clang-tidy / checks / readability / redundant-function-ptr-dereference.rst
blobd8c7ec7884c831a0d800c28efb558743b6a30279
1 .. title:: clang-tidy - readability-redundant-function-ptr-dereference
3 readability-redundant-function-ptr-dereference
4 ==============================================
6 Finds redundant dereferences of a function pointer.
8 Before:
10 .. code-block:: c++
12   int f(int,int);
13   int (*p)(int, int) = &f;
15   int i = (**p)(10, 50);
17 After:
19 .. code-block:: c++
21   int f(int,int);
22   int (*p)(int, int) = &f;
24   int i = (*p)(10, 50);