diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-09-02 15:52:07 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-09-07 08:28:09 +0200 |
commit | 6c174364491ea6674df64f26934f9418f7f40651 (patch) | |
tree | 4b7da9d3c41f43dc07fddf8a48b5b29cca7982ec /.tag | |
parent | 115d99b7de934f30d52fbcf56ee4ff170377dd26 (diff) |
Teach syncqt to filter out QT_DEPRECATED_* macros
We already had code that filtered out QT_DEPRECATED_X("text"). But that
isn't enough, because, by now, we have a true cornucopia of
QT_DEPRECATED_* macros. And only some are called with an argument list.
Move the filtering code into the subroutine filterDeprecationMacros,
because our filtering is slightly more complex now:
- Try to match a QT_DEPRECATED_* macro call.
- Try to match balanced parentheses with a recursive regular expression.
- Check whether the found balanced parentheses are directly behind
QT_DEPRECATED_*, because only then it is the argument list of that
macro.
- Filter out what we've found.
With this patch, syncqt doesn't discard deprecated classes anymore.
Task-number: QTBUG-80347
Change-Id: I7872159639be330d5a039c98eac0c5007d9acb93
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to '.tag')
0 files changed, 0 insertions, 0 deletions