qt5base-lts/libexec
Joerg Bornemann 6c17436449 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>
2021-09-07 08:28:09 +02:00
..
qt-internal-configure-tests.bat.in Fix invalid path to the qt-cmake.bat when calling qt-internal-configure-tests.bat 2021-06-23 14:26:18 +02:00
qt-internal-configure-tests.in CMake: Make qt-internal-configure-tests relocatable 2021-04-26 23:11:28 +02:00
syncqt.pl Teach syncqt to filter out QT_DEPRECATED_* macros 2021-09-07 08:28:09 +02:00