bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/misc/confusable-identifiers.rst
2025-02-14 19:21:04 +01:00

15 lines
563 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. title:: clang-tidy - misc-confusable-identifiers
misc-confusable-identifiers
===========================
Warn about confusable identifiers, i.e. identifiers that are visually close to
each other, but use different Unicode characters. This detects a potential
attack described in `CVE-2021-42574 <https://www.cve.org/CVERecord?id=CVE-2021-42574>`_.
Example:
.. code-block:: text
int fo; // Initial character is U+0066 (LATIN SMALL LETTER F).
int 𝐟o; // Initial character is U+1D41F (MATHEMATICAL BOLD SMALL F) not U+0066 (LATIN SMALL LETTER F).