CppEditor: fix "follow symbol under cursor" for operators
Like for functions we can call attemptFuncDeclDef for operators. The
check for function names has been enhanced to take operators into
account.
For the switch from definition to declaration
SymbolFinder::findMatchingDeclaration has been enriched with operator
knowledge.
Task-number: QTCREATORBUG-7485
Change-Id: I29eebee337e26c8bf67dc8b4a15c43883045589d
Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
Showing
- src/plugins/cppeditor/cppeditorplugin.h 6 additions, 0 deletionssrc/plugins/cppeditor/cppeditorplugin.h
- src/plugins/cppeditor/cppfollowsymbolundercursor.cpp 30 additions, 0 deletionssrc/plugins/cppeditor/cppfollowsymbolundercursor.cpp
- src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp 76 additions, 0 deletions...ugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
- src/plugins/cpptools/symbolfinder.cpp 39 additions, 14 deletionssrc/plugins/cpptools/symbolfinder.cpp
Loading
Please register or sign in to comment