<div dir="ltr">I think there's a two different "levels" of deprecated:<div>a) There's a better function you should know about and prefer in new code, but the old one will (probably) not be removed. This sort of deprecation should only be mentioned in comments, since there's no real reason to have people's builds start spewing warning messages if they used the old function.</div><div>b) There's a better function, and the old one will be removed soon. These ought to use a deprecated attribute, in order to entice people to switch over before it turns into a "no such function" error.</div><div><br></div><div>I'd expect most of the deprecations in the C API to be of the former kind.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 5, 2016 at 4:07 PM, Alex Denisov via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I’m working with the LLVM C API now.<br>
I see that several functions are deprecated, however the only notion is in comments around the function.<br>
<br>
Is there any specific reason why __attribute__((deprecated)) is omitted?<br>
Will it make sense to send a patch with such additions?<br>
--<br>
AlexDenisov<br>
Software Engineer, <a href="http://lowlevelbits.org" rel="noreferrer" target="_blank">http://lowlevelbits.org</a><br>
<br>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>