diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-09 11:02:10 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2009-10-13 11:22:39 +0200 |
commit | 29a0c6d2a4d36a0f649d575f77515e16d6e2f570 (patch) | |
tree | 3912d5fa79417cd34ed47ecec3e64b0539bd1a50 | |
parent | 75382ea76deeb0e72089e52332c3ee432af313fb (diff) |
Handle ambiguous AST nodes.
(cherry picked from commit dbffec2cca9f35e9475e33648d7907fe0b9d9ecc)
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index 9fab349368..03397a655a 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -417,6 +417,24 @@ protected: return false; } + virtual bool visit(ExpressionOrDeclarationStatementAST *ast) + { + accept(ast->declaration); + return false; + } + + virtual bool visit(FunctionDeclaratorAST *ast) + { + accept(ast->parameters); + + for (SpecifierAST *spec = ast->cv_qualifier_seq; spec; spec = spec->next) + accept(spec); + + accept(ast->exception_specification); + + return false; + } + private: QFutureInterface<Utils::FileSearchResult> *_future; Identifier *_id; // ### remove me |