[cfe-dev] Clang and Swift

James Y Knight via cfe-dev cfe-dev at lists.llvm.org
Fri Dec 4 15:11:47 PST 2015

On Dec 4, 2015, at 5:57 PM, Anna Zaks <ganna at apple.com> wrote:
>> On Dec 4, 2015, at 2:46 PM, James Y Knight <jyknight at google.com <mailto:jyknight at google.com>> wrote:
>> Without having looked into it...
>> If people need a feature like this, I'm wondering if it would make sense to parse a special file containing normalish C/C++/ObjC declarations, and use those to replace or augment attributes from matching declarations in the normal parse. Requiring a special YAML and binary format reader/writer seems unfortunate, especially as it looks nowhere close to being generically useful, beyond exactly what Swift needed.
> The use cases described by Sean and me have nothing to do with Swift. The static analyzer (as well as other bug finding tools) often need to have more information than what’s already in the code. The clang static analyzer already has a growing body of hardcoded APIs. 

Sorry I should have written more clearly. I meant that looking at the *current* implementation of API Notes, the YAML/binary formats look very much specific to supporting only those attributes needed by swift, and do not look generically usable. I can certainly see the concept in general being generically useful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151204/d8421d23/attachment.html>

More information about the cfe-dev mailing list