aaron.ballman added inline comments.
================
Comment at: clang/include/clang/Basic/AttrDocs.td:987-989
+The first argument to the attribute is the type passed to
+`__builtin_object_size`, and the second is the flag that the fortified format
+functions accept.
----------------
Maybe I'm being dense, but I still have no idea what I'd pass for either of 
these arguments. When I hear "type", I immediately assume I should pass in 
something like 'int', but that seems wrong given that this is an integer 
argument. Is there some public documentation we could link to with a "for more 
information, see <blah>" snippet? Similar for the fortified format function 
flag.

However, I'm also starting to wonder why this attribute is interesting to 
users. Why not infer this attribute automatically, since there's only a 
specified set of standard library functions that it can be applied to anyway? 
Is it a bad idea to try to infer this for some reason?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57918/new/

https://reviews.llvm.org/D57918



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to