summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-10-09 11:02:10 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-10-09 11:02:47 +0200
commitdbffec2cca9f35e9475e33648d7907fe0b9d9ecc (patch)
treec505be055061fab3e0bed4f858ce86a3c8693800 /src/plugins/cpptools/cppfindreferences.cpp
parentfd6e18584ad97fe994065778565797632444dad3 (diff)
downloadqt-creator-dbffec2cca9f35e9475e33648d7907fe0b9d9ecc.tar.gz
Handle ambiguous AST nodes.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp18
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