• Stephan Bergmann's avatar
    Adding SAL_DEPRECATED_INTERNAL to an implementation function is pointless · 44ea5d14
    Stephan Bergmann yazdı
    ...as there are typically no direct calls to it anyway.  What is apparently
    needed is to decorate the cppumaker-generated headers instead:
    
    * cppumaker obtains deprecation-information from the documentation strings in
      .rdb files.  As these are normally generated by idlc without documentation
      included (no -C), idlc got changed to nevertheless contain documentation
      consisting of just "@deprecated" in this case, to allow to easily tunnel this
      information to cppumaker always.
    
    * The mechanism of parsing for "@deprecated" in documentation strings is
      somewhat crude, of course.
    
    * For now, cppumaker only decorates C++ functions that correspond to UNOIDL
      interface attributes and methods.  More should be possible (but, e.g., being
      able to decorate a complete C++ class corresponding to a deprecated UNOIDL
      interface type depends on whether all platforms would accept
      SAL_DEPRECATED_INTERNAL at the same position in a C++ class declaration.
    
    * This could also be extended to other languages than C++/cppumaker.
    
    * Always using SAL_DEPRECATED_INERNAL instead of SAL_DEPRECATED for decoration
      is to keep things simple and our codebase working.  Improvements are possible
      here, too, of course.
    
    Change-Id: Ia2917892f780d477652e4cd9f286588a6898c3f5
    44ea5d14
Adı
Son kayıt (commit)
Son güncelleme
..
astarray.cxx Loading commit data...
astconstant.cxx Loading commit data...
astdeclaration.cxx Loading commit data...
astdump.cxx Loading commit data...
astenum.cxx Loading commit data...
astexpression.cxx Loading commit data...
astinterface.cxx Loading commit data...
astoperation.cxx Loading commit data...
astscope.cxx Loading commit data...
astservice.cxx Loading commit data...
aststack.cxx Loading commit data...
aststruct.cxx Loading commit data...
aststructinstance.cxx Loading commit data...
astunion.cxx Loading commit data...
attributeexceptions.hxx Loading commit data...
errorhandler.cxx Loading commit data...
fehelper.cxx Loading commit data...
idlc.cxx Loading commit data...
idlccompile.cxx Loading commit data...
idlcmain.cxx Loading commit data...
idlcproduce.cxx Loading commit data...
options.cxx Loading commit data...
parser.y Loading commit data...
scanner.l Loading commit data...