     var type: Type {
         get {
             return Type(clang_getCursorType(self.context))
+        }
+    }
+    
+    var platformAvailability: PlatformAvailability {
+        get {
+            var always_deprecated: Int32 = 0
+            var deprecated_message: CXString = nil
+            var always_unavailable: Int32 = 0
+            var unavailable_message: CXString = nil
+            
+            let count = clang_getCursorPlatformAvailability(self.context, &always_deprecated, &deprecated_message, &always_unavailable, &unavailable_message, nil, 0)
+            var info = UnsafeMutablePointer<CXPlatformAvailability>.alloc(Int(count))
+            clang_getCursorPlatformAvailability(self.context, nil, nil, nil, nil, info, count)
+            let availability = PlatformAvailability(info, Int(count), always_deprecated != Int32(0), String.fromCXString(deprecated_message), always_unavailable != Int32(0), String.fromCXString(unavailable_message))
+            clang_disposeString(deprecated_message)
+            clang_disposeString(unavailable_message)
+            return availability
         }
     }
     

//  Auspicion
//
//  Created by Philippe Hausler on 10/6/14.
//  Copyright (c) 2014 Rob Rix. All rights reserved.
//

import clang

public final class Cursor {
    init(_ context: CXCursor) {
        self.context = context
    }

        }
    }
    
    var isNull: Bool {
        get {
            return clang_Cursor_isNull(self.context) != 0
        }
    }
    
    var translationUnit: Bool {
        get {
            return clang_isTranslationUnit(self.kind) != 0
