diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-03-11 15:35:55 +0100 |
---|---|---|
committer | Martin Smith <martin.smith@qt.io> | 2017-08-10 07:32:05 +0000 |
commit | 21ca107f47600d729431828f562c6baca5ad4fb0 (patch) | |
tree | 97987b671f035b9bc3d14f90b5e1dc2001b3c909 /src/qdoc/clangcodeparser.cpp | |
parent | b032aee53c8fb6807485186f276ca25b86ac1251 (diff) | |
download | qttools-21ca107f47600d729431828f562c6baca5ad4fb0.tar.gz |
Parse function pointer types the same way clang does
When an argument to a function is itself a function, use
the same representation of its type that clang uses.
- Omit spaces adjacent to parentheses
- The argument name is not part of the argument type.
This is required so types parsed with our parser lead to the same
string as libclang gives us.
The only function affected in QtCore is qRegisterAnimationInterpolator.
Before: void qRegisterAnimationInterpolator(QVariant(* ) ( const T & from, const T & to, qreal progress ) func)
After: void qRegisterAnimationInterpolator(QVariant (*)(const T &, const T &, qreal) func)
Unfortunately, this means the documentation does not contain the parameter
names in the function type. We will probably have to adapt the documentation
of qRegisterAnimationInterpolator() to mention the meaning explicitly.
Change-Id: I00ba1854869c061fb54c6a53e6eb02b934c20459
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/clangcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions