aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/Module.cpp
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:04 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-01-18 12:27:04 +0000
commit8b2b677f390d5181be4b99421dad4b418aa88e5f (patch)
treed51115d6af37fc710898d74e55039ddf7e5c3d31 /clang/lib/Serialization/Module.cpp
parentc9196651fcf6026a54af3ca81d34d7c7120f9da7 (diff)
downloadllvm-8b2b677f390d5181be4b99421dad4b418aa88e5f.zip
llvm-8b2b677f390d5181be4b99421dad4b418aa88e5f.tar.gz
llvm-8b2b677f390d5181be4b99421dad4b418aa88e5f.tar.bz2
Improves support for Unicode in character literals
Updates ProcessUCNExcape() for C++. C++11 allows UCNs in character and string literals that represent control characters and basic source characters. Also C++03 allows UCNs that refer to surrogate codepoints. UTF-8 sequences in character literals are now handled as single c-chars. Added error for multiple characters in Unicode character literals. Added errors for when a the execution charset encoding of a c-char cannot be represented as a single code unit in the associated character type. Note that for the purposes of this error the asso- ciated character type for a narrow character literal is char, not int, even though in C narrow character literals have type int. llvm-svn: 148389
Diffstat (limited to 'clang/lib/Serialization/Module.cpp')
0 files changed, 0 insertions, 0 deletions