You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang-tidy]misc-const-correctness fix fake positive of function pointer (#162079)
Fix clang-tidy misc-const-correctness of function pointer, because
function pointer can't be declared as `const*const`
```
void function_pointer_basic() {
void (*const fp)() = nullptr;
fp();
}
test.cpp:2:3: warning: pointee of variable 'fp' of type 'void (*const)()' can be declared 'const' [misc-const-correctness]
2 | void (*const fp)() = nullptr;
| ^
| const
```
---------
Co-authored-by: Congcong Cai <[email protected]>
0 commit comments