Page MenuHomePhabricator

annara (Anna Arad)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 26 2023, 12:19 PM (9 w, 5 d)

Recent Activity

Mar 27 2023

annara added a comment to D146924: [clang] Add support for dollar sign in ud_suffix of numeric constants.

Thanks for all the input!

Mar 27 2023, 11:45 AM · Restricted Project, Restricted Project
annara added a comment to D146924: [clang] Add support for dollar sign in ud_suffix of numeric constants.

After a second look at the standard, you are right.
It's not in the range of any of the universal-character-names.
That being said, it is allowed as an identifier by default in clang (as @tahonermann) mentioned.
It also works in current versions of clang if you use the UCN in the numeric constant (and leave the user-defined literal operator declaration with a $ sign).
As you stated, GCC also accepts this syntax.

Mar 27 2023, 2:08 AM · Restricted Project, Restricted Project

Mar 26 2023

annara updated the summary of D146924: [clang] Add support for dollar sign in ud_suffix of numeric constants.
Mar 26 2023, 12:36 PM · Restricted Project, Restricted Project
annara requested review of D146924: [clang] Add support for dollar sign in ud_suffix of numeric constants.
Mar 26 2023, 12:27 PM · Restricted Project, Restricted Project