forked from qt-creator/qt-creator
C++: Synchronize function decl/def refactoring.
When editing a function declaration or definition the code model may realize the same changes have to be applied somewhere else. A refactoring marker will pop up that can be clicked to perform the changes. Alternatively, press enter to apply. Change-Id: I2299a2ecfb6a8f87d4853fc7cfa99486f890a1d3 Reviewed-on: http://codereview.qt.nokia.com/2909 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -45,6 +45,7 @@ namespace CPlusPlus {
|
||||
|
||||
class Macro;
|
||||
class MacroArgumentReference;
|
||||
class LookupContext;
|
||||
|
||||
class CPLUSPLUS_EXPORT Document
|
||||
{
|
||||
@@ -386,7 +387,7 @@ public:
|
||||
Document::Ptr documentFromSource(const QByteArray &preprocessedCode,
|
||||
const QString &fileName) const;
|
||||
|
||||
Symbol *findMatchingDefinition(Symbol *symbol) const;
|
||||
Symbol *findMatchingDefinition(Symbol *symbol, bool strict = false) const;
|
||||
Class *findMatchingClassDeclaration(Symbol *symbol) const;
|
||||
|
||||
private:
|
||||
@@ -396,6 +397,15 @@ private:
|
||||
_Base _documents;
|
||||
};
|
||||
|
||||
void CPLUSPLUS_EXPORT findMatchingDeclaration(
|
||||
const LookupContext &context,
|
||||
Function *functionType,
|
||||
QList<Declaration *> *typeMatch,
|
||||
QList<Declaration *> *argumentCountMatch,
|
||||
QList<Declaration *> *nameMatch);
|
||||
QList<Declaration *> CPLUSPLUS_EXPORT findMatchingDeclaration(
|
||||
const LookupContext &context, Function *functionType);
|
||||
|
||||
} // namespace CPlusPlus
|
||||
|
||||
#endif // CPLUSPLUS_CPPDOCUMENT_H
|
||||
|
||||
Reference in New Issue
Block a user