<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>" As some of you may have heard, Swift has gone open-source over at <a href="http://swift.org">swift.org</a> <<a href="http://swift.org/">http://swift.org/</a>>. 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> <<a href="http://llvm.org/">http://llvm.org/</a>> Clang repository over on GitHub at <a href="http://github.com/apple/swift-clang">github.com/apple/swift-clang</a> <<a href="http://github.com/apple/swift-clang">http://github.com/apple/swift-clang</a>>. We merge regularly and try to minimize our differences with <a href="http://llvm.org">llvm.org</a> <<a href="http://llvm.org/">http://llvm.org/</a>>'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> <<a href="http://swift.org/contributing/#llvm-and-swift">http://swift.org/contributing/#llvm-and-swift</a>>. "</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 & clang libs, can one use Clang C API for AST generation. Or one has to write their own wrappers around swift c++ API'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>