[Lexer] Allow UCN for dollar symbol '\u0024' in identifiers when using -fdollars...
authorScott Egerton <scott.egerton@embecosm.com>
Wed, 15 Jan 2020 11:28:55 +0000 (11:28 +0000)
committerScott Egerton <scott.egerton@embecosm.com>
Wed, 15 Jan 2020 11:28:57 +0000 (11:28 +0000)
commita90ea386981f4fa3c7cb7f62c6900069764b05a8
treeb125c624421790750335c00733eb8e3c12641873
parentca6f616532780b236556fc129cda3243d31cb01a
[Lexer] Allow UCN for dollar symbol '\u0024' in identifiers when using -fdollars-in-identifiers flag.

Summary:
Previously, the -fdollars-in-identifiers flag allows the '$' symbol to be used
in an identifier but the universal character name equivalent '\u0024' is not
allowed.
This patch changes this, so that \u0024 is valid in identifiers.

Reviewers: rsmith, jordan_rose

Reviewed By: rsmith

Subscribers: dexonsmith, simoncook, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71758
clang/lib/Lex/Lexer.cpp
clang/test/Preprocessor/ucn-pp-identifier.c