[cfe-commits] r43792 - /cfe/trunk/include/clang/AST/Type.h
Ted Kremenek
kremenek at apple.com
Tue Nov 6 16:13:46 PST 2007
Author: kremenek
Date: Tue Nov 6 18:13:45 2007
New Revision: 43792
URL: http://llvm.org/viewvc/llvm-project?rev=43792&view=rev
Log:
Added static inline method "ReadVal" to QualType for more succinct
deserialization code of objects containing QualTypes.
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=43792&r1=43791&r2=43792&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Tue Nov 6 18:13:45 2007
@@ -167,6 +167,12 @@
/// 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;
More information about the cfe-commits
mailing list