[Clang] Add support for Unicode identifiers (UAX31) in C2x mode.
authorCorentin Jabot <corentinjabot@gmail.com>
Sat, 23 Jul 2022 10:18:01 +0000 (12:18 +0200)
committerCorentin Jabot <corentinjabot@gmail.com>
Sat, 23 Jul 2022 12:08:08 +0000 (14:08 +0200)
commitaee76cb59ca273d46db20cd7d23a252a2683ed6a
tree1a768f0a320e49d3c2beb161470ab9ad6fba5bd2
parent66e66117ba510f46399615d87619ff3d7324b106
[Clang] Add support for Unicode identifiers (UAX31) in C2x mode.

This implements
N2836 Identifier Syntax using Unicode Standard Annex 31.

The feature was already implemented for C++,
and the semantics are the same.

Unlike C++ there was, afaict, no decision to
backport the feature in older languages mode,
so C17 and earlier are not modified and the
code point tables for these language modes are conserved.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D130416
clang/docs/ReleaseNotes.rst
clang/lib/Lex/Lexer.cpp
clang/test/Lexer/unicode.c
clang/www/c_status.html