开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜