]> granicus.if.org Git - clang/commitdiff
Add a setter for CVR qualifiers, patch by Lukasz Janyst!
authorChris Lattner <sabre@nondot.org>
Tue, 23 Dec 2008 04:57:30 +0000 (04:57 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Dec 2008 04:57:30 +0000 (04:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61367 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index ffcc9f6457b507e51d91a47e111bf9f570ccbe61..60ae34b146e2eb8f918acae54ad63204e460526e 100644 (file)
@@ -93,6 +93,7 @@ public:
     : Value(const_cast<Type*>(Ptr), Quals) {}
 
   unsigned getCVRQualifiers() const { return Value.getInt(); }
+  void setCVRQualifiers(unsigned Quals) { Value.setInt(Quals); }
   Type *getTypePtr() const { return Value.getPointer(); }
   
   void *getAsOpaquePtr() const { return Value.getOpaqueValue(); }