<div dir="ltr">Quoting from cfe-dev list message,<div><br></div><div><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>&quot; As some of you may have heard, Swift has gone open-source over at <a href="http://swift.org">swift.org</a> &lt;<a href="http://swift.org/">http://swift.org/</a>&gt;. Swift makes heavy use of Clang for its (Objective-)C interoperability, including loading Clang modules to map (Objective-)C APIs into Swift via Swift’s “Clang importer” and using Clang’s CodeGen to handle C ABI issues (record layout, calling conventions) and use C inline functions directly from Swift [*]. 

As an out-of-tree language front-end dependent on Clang, we have a clone of the <a href="http://llvm.org">llvm.org</a> &lt;<a href="http://llvm.org/">http://llvm.org/</a>&gt; Clang repository over on GitHub at <a href="http://github.com/apple/swift-clang">github.com/apple/swift-clang</a> &lt;<a href="http://github.com/apple/swift-clang">http://github.com/apple/swift-clang</a>&gt;. We merge regularly and try to minimize our differences with <a href="http://llvm.org">llvm.org</a> &lt;<a href="http://llvm.org/">http://llvm.org/</a>&gt;&#39;s Clang—for more information on how we’re handling this, see <a href="http://swift.org/contributing/#llvm-and-swift">swift.org/contributing/#llvm-and-swift</a> &lt;<a href="http://swift.org/contributing/#llvm-and-swift">http://swift.org/contributing/#llvm-and-swift</a>&gt;. &quot;</i></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i><br></i></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i><br></i></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Does swift maps its c++ internal apis to Clang C API, by this I mean using swift &amp; clang libs, can one use Clang C API for AST generation. Or one has to write their own wrappers around swift c++ API&#39;s to use it in swift code.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thanks</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Ramakrishna</pre></div></div>