From: Ted Kremenek Date: Wed, 7 Nov 2007 00:13:45 +0000 (+0000) Subject: Added static inline method "ReadVal" to QualType for more succinct X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f623c85c80f875be9d20caf4a0c15092e42e0b9e;p=clang 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 --- 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;