We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a132e1c + 5484308 commit 46c67a9Copy full SHA for 46c67a9
Sources/LLVM/LLVM_Utils.swift
@@ -13,6 +13,10 @@
13
@_exported import LLVM_Utils // Clang module
14
15
extension String {
16
+ public init(_ stringRef: llvm.StringRef) {
17
+ self.init(cxxString: stringRef.str())
18
+ }
19
+
20
public func withStringRef<Result>(_ body: (llvm.StringRef) -> Result) -> Result {
21
var str = self
22
return str.withUTF8 { buffer in
0 commit comments