[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang-tools-extra / docs / clang-tidy / checks / misc / confusable-identifiers.rst
blob1b2d96127835663faaa740329ae971ada60be088
1 .. title:: clang-tidy - misc-confusable-identifiers
3 misc-confusable-identifiers
4 ===========================
6 Warn about confusable identifiers, i.e. identifiers that are visually close to
7 each other, but use different Unicode characters. This detects a potential
8 attack described in `CVE-2021-42574 <https://www.cve.org/CVERecord?id=CVE-2021-42574>`_.
10 Example:
12 .. code-block:: text
14     int fo; // Initial character is U+0066 (LATIN SMALL LETTER F).
15     int 𝐟o; // Initial character is U+1D41F (MATHEMATICAL BOLD SMALL F) not U+0066 (LATIN SMALL LETTER F).