From 3a8244df6fb88a6670470e603445c72f224db9e3 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 1 May 2018 05:02:45 +0000 Subject: Implement P0482R2, support for char8_t type. This is not yet part of any C++ working draft, and so is controlled by the flag -fchar8_t rather than a -std= flag. (The GCC implementation is controlled by a flag with the same name.) This implementation is experimental, and will be removed or revised substantially to match the proposal as it makes its way through the C++ committee. llvm-svn: 331244 --- clang/lib/Serialization/ASTCommon.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Serialization/ASTCommon.cpp') diff --git a/clang/lib/Serialization/ASTCommon.cpp b/clang/lib/Serialization/ASTCommon.cpp index 535aacb8c49..54cea92042a 100644 --- a/clang/lib/Serialization/ASTCommon.cpp +++ b/clang/lib/Serialization/ASTCommon.cpp @@ -100,6 +100,9 @@ serialization::TypeIdxFromBuiltin(const BuiltinType *BT) { case BuiltinType::NullPtr: ID = PREDEF_TYPE_NULLPTR_ID; break; + case BuiltinType::Char8: + ID = PREDEF_TYPE_CHAR8_ID; + break; case BuiltinType::Char16: ID = PREDEF_TYPE_CHAR16_ID; break; -- cgit v1.2.3