diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 7c3778b594948d2275f8de98eecb8afb5789feed..d8401f06e4daae5b8c730331086d0ff43d66a17b 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -352,6 +352,24 @@ protected: accept(ast->name); 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; + } };