The checker warns in case the address of a function is compared
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).
If I'm not mistaken, GCC or Clang has warning that result of comparison is always true for such situations.
clang-tidy/misc/ComparisonFunctionAddressCheck.h | ||
---|---|---|
19 | Please lowercase Checker. Add add spaces across == below. | |
docs/clang-tidy/checks/misc-comparison-function-address.rst | ||
6 | Please lowercase Checker. | |
7 | Please add space across ==. Please also run Clang-format over examples code. | |
18 | Please highlight nullptr with ``. | |
test/clang-tidy/misc-comparison-function-address.cpp | ||
16 | Unnecessary empty line. | |
30 | Unnecessary empty line. |
Please lowercase Checker. Add add spaces across == below.