ECMGenerateExportHeader: add generation of *_DEPRECATED_VERSION_BELATED()
ClosedPublic

Authored by kossebau on May 9 2020, 7:55 PM.

Details

Summary

Now and then tagging some API as deprecated for the compiler is forgotten.
Doing this retractivitly in newer versions but using the official version
might break build setups configured to only show warnings up to a certain
version and otherwise fail a build, using -Werror=deprecated-declarations.

To allow retroactive tagging of API for compiler warnings, and showing the
official version in the warniung message, while reacting only to warning
controls for the current version where the tag is added, avoids any such
annoying experiences, without wrong version info at the same time.

Diff Detail

Repository
R240 Extra CMake Modules
Branch
addbelated
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 26624
Build 26642: arc lint + arc unit
kossebau created this revision.May 9 2020, 7:55 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptMay 9 2020, 7:55 PM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.May 9 2020, 7:55 PM
dfaure accepted this revision.May 9 2020, 8:04 PM

So many things to take care of :-)

This revision is now accepted and ready to land.May 9 2020, 8:04 PM
This revision was automatically updated to reflect the committed changes.