On Sun, Sep 26, 2010 at 5:31 PM, Dani Church <dchurch_at_cheri.shyou.org> wrote:
> On Sun, 26 Sep 2010, Daniel Shahaf wrote:
>> Adding the SVN_MAYBE_POISON(svn_wc_some_function) can be done
>> mechanically (by a script that reads the @deprecated comments and
>> transforms the header files accordingly) --- instead of editing all
>> headers now, we could provide a knob for people to run this script
>> during 'make install'.
> I toyed around with that kind of idea, but, having just done a lot of
> partially-automated text processing on these files, I know just how hard it
> is to get it right-- I wouldn't want to leave that to an automated script.
> Also, I'm not a big fan of having to mangle the header files before they're
> usable-- I'd rather be able to point my GCC include path straight at my
> working copy.
We already have a header-file parser: doxygen. It shouldn't be too
much trouble to get the xml-ified doxygen output for a given header
and search for deprecated APIs based upon that. Whether or not we
*should* do that is another question, but I'm just pointing out that
it's technically feasible.
 Famous last words
Received on 2010-09-27 13:54:21 CEST