Clang unicode characters for variable name

cat test.cpp

#include <iostream> int main() { int à; } 

leads to:

 clang++ test.cpp test.cpp:4:7: error: expected unqualified-id int à; ^ 1 error generated. 

Now, is there a way to get clang to resolve Unicode variable names?

Thanks!

+4
source share
1 answer

Although permitted by the standard, Clang does not currently support UCN (universal character name) s in identifiers.

+2
source

Source: https://habr.com/ru/post/1307602/


All Articles