0001 // this file is generated by `create_swift_from_generated_interface.py` 0002 #if SWIFT_PACKAGE 0003 import Clang_C 0004 #endif 0005 private let library= toolchainLoader.load("libclang.dylib") 0006 // swiftlint:disable file_length 0007 // swiftlint:disable force_unwrapping 0008 // swiftlint:disable function_parameter_count 0009 // swiftlint:disable missing_docs 0010 // swiftlint:disable trailing_newline 0011 // swiftlint:disable variable_name 0012 // swiftlint:disable valid_docs 0013 // import Darwin 0014 // import Foundation 0015 // import SWXMLHash 0016 // import SourceKittenFramework 0017 0018 /*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\ 0019 |* *| 0020 |* The LLVM Compiler Infrastructure *| 0021 |* *| 0022 |* This file is distributed under the University of Illinois Open Source *| 0023 |* License. See LICENSE.TXT for details. *| 0024 |* *| 0025 |*===----------------------------------------------------------------------===*| 0026 |* *| 0027 |* This header provides the interface to C Index strings. *| 0028 |* *| 0029 \*===----------------------------------------------------------------------===*/ 0030 0031 /** 0032 * \defgroup CINDEX_STRING String manipulation routines 0033 * \ingroup CINDEX 0034 * 0035 * @{ 0036 */ 0037 0038 /** 0039 * \brief A character string. 0040 * 0041 * The \c CXString type is used to return strings from the interface when 0042 * the ownership of that string might differ from one call to the next. 0043 * Use \c clang_getCString() to retrieve the string data and, once finished 0044 * with the string data, call \c clang_disposeString() to free the string. 0045 */ 0046 /* 0047 public struct CXString { 0048 public var data: UnsafePointer<Void> 0049 public var private_flags: UInt32 0050 public init() 0051 public init(data: UnsafePointer<Void>, private_flags: UInt32) 0052 } 0053 */ 0054 0055 /* 0056 extension CXString : CustomStringConvertible { 0057 public var description: String { get } 0058 0059 */ 0060 0061 /** 0062 * \brief Retrieve the character data associated with the given string. 0063 */ 0064 public func clang_getCString
created_CXString.swift:67 private let _clang_getCString: @convention(c) (string: CXString) -> UnsafePointer<Int8> = library.loadSymbol("clang_getCString")created_CXString.swift:76 private let _clang_disposeString: @convention(c) (string: CXString) -> () = library.loadSymbol("clang_disposeString")(string: CXString) -> UnsafePointer<Int8> { 0065 return _clang_getCString(string: string) 0066 } 0067 private let _clang_getCString
Clang+SourceKitten.swift:30 return String.fromCString(clang_getCString(self)): @convention(c) (string: CXString) -> UnsafePointer<Int8> = library.loadSymbol("clang_getCString") 0068 0069 0070 /** 0071 * \brief Free the given string. 0072 */ 0073 public func clang_disposeString(string: CXString) { 0074 return _clang_disposeString(string: string) 0075 } 0076 private let _clang_disposeString
created_CXString.swift:65 return _clang_getCString(string: string): @convention(c) (string: CXString) -> () = library.loadSymbol("clang_disposeString") 0077 0078
created_CXString.swift:74 return _clang_disposeString(string: string)