diff options
Diffstat (limited to 'include/clang/AST/Type.h')
-rw-r--r-- | include/clang/AST/Type.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 644be13f5f..7554b697e3 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -195,6 +195,16 @@ public: /// GCAttrTypesAttr - Returns gc attribute of this type. inline QualType::GCAttrTypes getObjCGCAttr() const; + + /// isObjCGCWeak true when Type is objc's weak. + bool isObjCGCWeak() const { + return getObjCGCAttr() == Weak; + } + + /// isObjCGCStrong true when Type is objc's strong. + bool isObjCGCStrong() const { + return getObjCGCAttr() == Strong; + } /// Emit - Serialize a QualType to Bitcode. void Emit(llvm::Serializer& S) const; |