diff options
author | Christian Tismer <ctismer@gmail.com> | 2016-04-19 15:30:45 +0200 |
---|---|---|
committer | Christian Tismer <ctismer@gmail.com> | 2016-04-19 15:30:45 +0200 |
commit | 9b4a3cfcee9cfd5a98c33b29ec4ecfd8d3e973f4 (patch) | |
tree | b49afe985cb964b1d636b75817bb63116aec26c6 | |
parent | 6064eadc4e861315240e5d61ed4dbf91764bd358 (diff) |
a quick fix that should work, but will become obsolete with Qt 5.6.1qt5-license
-rw-r--r-- | ApiExtractor/parser/binder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ApiExtractor/parser/binder.cpp b/ApiExtractor/parser/binder.cpp index 64289c5..d1bb3e4 100644 --- a/ApiExtractor/parser/binder.cpp +++ b/ApiExtractor/parser/binder.cpp @@ -319,6 +319,12 @@ void Binder::visitFunctionDefinition(FunctionDefinitionAST *node) // node is generated in 'parser.cpp' while (declarator && declarator->sub_declarator) declarator = declarator->sub_declarator; + if (!declarator->id) { + std::cerr << "** WARNING temp hack for Qt 5.6.0: " + << "skipped a class that inherits from a private class" + << std::endl; + return; + } Q_ASSERT(declarator->id); CodeModelFinder finder(model(), this); |