From f623c85c80f875be9d20caf4a0c15092e42e0b9e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 7 Nov 2007 00:13:45 +0000 Subject: [PATCH] Added static inline method "ReadVal" to QualType for more succinct deserialization code of objects containing QualTypes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43792 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 6d7a6d7ce7..6df13be7b0 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -167,6 +167,12 @@ public: /// exists, in place, within its containing object. void Read(llvm::Deserializer& D); + static inline QualType ReadVal(llvm::Deserializer& D) { + QualType Q; + Q.Read(D); + return Q; + } + /// EmitOwned - Serialize a QualType that owns the underlying Type*. void EmitOwned(llvm::Serializer& S) const; -- 2.50.1