clang unicode characters for variable name
cat test.cpp
#include <iostream>
int main() {
int à;
}
results in:
clang++ test.c开发者_如何学编程pp
test.cpp:4:7: error: expected unqualified-id
int à;
^
1 error generated.
Now, is there a way to get clang to allow unicode variable names?
Thanks!
While this is allowed by the standard, Clang does not currently support UCN (universal character name)s in identifiers.
精彩评论