diff options
author | Neil <nyamatongwe@gmail.com> | 2025-04-03 10:07:20 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-04-03 10:07:20 +1100 |
commit | edb7369a2c6a19393dc413a9595a234969fc2731 (patch) | |
tree | 1dd7de2ad759c58d48606bd8a204503944feec12 /src/CharacterCategoryMap.cxx | |
parent | f40a7ce87a20e830a4959e33238d2caadef0ea04 (diff) | |
download | scintilla-mirror-edb7369a2c6a19393dc413a9595a234969fc2731.tar.gz |
Silence 'magic' number clang-tidy warning where there is intense use of literal
constants for processing character encodings or similar and where declaring
constants would make the code more obscure, not less.
Diffstat (limited to 'src/CharacterCategoryMap.cxx')
-rw-r--r-- | src/CharacterCategoryMap.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CharacterCategoryMap.cxx b/src/CharacterCategoryMap.cxx index 5bf6394ba..10218b3af 100644 --- a/src/CharacterCategoryMap.cxx +++ b/src/CharacterCategoryMap.cxx @@ -4072,6 +4072,10 @@ namespace { enum class OtherID { oidNone, oidStart, oidContinue }; +// Silence 'magic' number warning as these character values are not used in multiple places. + +// NOLINTBEGIN(*-magic-numbers) + // Some characters are treated as valid for identifiers even // though most characters from their category are not. // Values copied from http://www.unicode.org/Public/9.0.0/ucd/PropList.txt @@ -4161,6 +4165,8 @@ bool OmitXidContinue(int character) noexcept { } } +// NOLINTEND(*-magic-numbers) + } // UAX #31 defines ID_Start as |