<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 5, 2016, at 2:09 PM, James Y Knight via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I think there's a two different "levels" of deprecated:<div class="">a) There's a better function you should know about and prefer in new code, but the old one will (probably) not be removed.</div></div></div></blockquote><div><br class=""></div><div>Well, I’m not sure: if I’m doing some cleanup, and I reach the C API, I’ll look when the function was deprecated and may decide to remove it if it was not in the last release.</div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""> 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 class="">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 class=""><br class=""></div><div class="">I'd expect most of the deprecations in the C API to be of the former kind.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Apr 5, 2016 at 4:07 PM, Alex Denisov via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br class="">
<br class="">
I’m working with the LLVM C API now.<br class="">
I see that several functions are deprecated, however the only notion is in comments around the function.<br class="">
<br class="">
Is there any specific reason why __attribute__((deprecated)) is omitted?<br class="">
Will it make sense to send a patch with such additions?<br class="">
--<br class="">
AlexDenisov<br class="">
Software Engineer, <a href="http://lowlevelbits.org/" rel="noreferrer" target="_blank" class="">http://lowlevelbits.org</a><br class="">
<br class="">
<br class="">_______________________________________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></body></html>