brintos

brintos / llvm-project-archived public Read only

0
0
Text · 421 B · d8c7ec7 Raw
25 lines · plain
1.. title:: clang-tidy - readability-redundant-function-ptr-dereference2 3readability-redundant-function-ptr-dereference4==============================================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