diff options
author | Lorenz Haas <lykurg@gmail.com> | 2013-05-14 11:04:38 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-05-15 13:36:13 +0200 |
commit | 17a81ae1061a50e2d7184719ea20cc92a0d3a64c (patch) | |
tree | 16d4a48333b8983eac1ff2cb89d42bb5fa527b5c /src/plugins/cpptools/symbolfinder.h | |
parent | aa3aa7c455b80397c339aa49a49cf13afba453b9 (diff) | |
download | qt-creator-17a81ae1061a50e2d7184719ea20cc92a0d3a64c.tar.gz |
CppTools: findMatchingDefinition handles const and volatile
Strict set to true, SymbolFinder::findMatchingDefinition will now also
check, if const and volatile matches.
Changed return type from 'Symbol *' to 'Function *' since only functions
are returned.
Change-Id: Ib55cb12b6c404e94fcefd0613b964e8caa425690
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/symbolfinder.h')
-rw-r--r-- | src/plugins/cpptools/symbolfinder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/symbolfinder.h b/src/plugins/cpptools/symbolfinder.h index 7a756d0f06..eb52235efc 100644 --- a/src/plugins/cpptools/symbolfinder.h +++ b/src/plugins/cpptools/symbolfinder.h @@ -46,9 +46,9 @@ class CPPTOOLS_EXPORT SymbolFinder public: SymbolFinder(); - CPlusPlus::Symbol *findMatchingDefinition(CPlusPlus::Symbol *symbol, - const CPlusPlus::Snapshot &snapshot, - bool strict = false); + CPlusPlus::Function *findMatchingDefinition(CPlusPlus::Symbol *symbol, + const CPlusPlus::Snapshot &snapshot, + bool strict = false); CPlusPlus::Class *findMatchingClassDeclaration(CPlusPlus::Symbol *declaration, const CPlusPlus::Snapshot &snapshot); |