llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-impli...

17 lines
343 B
ReStructuredText

.. title:: clang-tidy - bugprone-bool-pointer-implicit-conversion
bugprone-bool-pointer-implicit-conversion
=========================================
Checks for conditions based on implicit conversion from a ``bool`` pointer to
``bool``.
Example:
.. code-block:: c++
bool *p;
if (p) {
// Never used in a pointer-specific way.
}