summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppfunctiondecldeflink.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-11-15 15:00:11 +0100
committerChristian Kamm <christian.d.kamm@nokia.com>2011-11-21 15:04:19 +0100
commita072941617a774cfc77c0ec2c2d5b2a26e1307d0 (patch)
tree465bc50b2809824a145f193fb537b9f17a6a09ca /src/plugins/cppeditor/cppfunctiondecldeflink.h
parentabd98ebeaa1b63b1a95630844d681f3f7e22b715 (diff)
downloadqt-creator-a072941617a774cfc77c0ec2c2d5b2a26e1307d0.tar.gz
C++ function signature: Improve preserving of default arguments.
Task-number: QTCREATORBUG-5978 Change-Id: Iab0bba3c16b4cd435f0dc6339db49f209f1359d3 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppfunctiondecldeflink.h')
-rw-r--r--src/plugins/cppeditor/cppfunctiondecldeflink.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.h b/src/plugins/cppeditor/cppfunctiondecldeflink.h
index 82c31153ee..0de6aa03cf 100644
--- a/src/plugins/cppeditor/cppfunctiondecldeflink.h
+++ b/src/plugins/cppeditor/cppfunctiondecldeflink.h
@@ -100,16 +100,20 @@ public:
QTextCursor nameSelection;
QString nameInitial;
- // 1-based line and column
- unsigned targetLine;
- unsigned targetColumn;
- QString targetInitial;
-
+ // The 'source' prefix denotes information about the original state
+ // of the function before the user did any edits.
CPlusPlus::Document::Ptr sourceDocument;
CPlusPlus::Function *sourceFunction;
CPlusPlus::DeclarationAST *sourceDeclaration;
CPlusPlus::FunctionDeclaratorAST *sourceFunctionDeclarator;
+ // The 'target' prefix denotes information about the remote declaration matching
+ // the 'source' declaration, where we will try to apply the user changes.
+ // 1-based line and column
+ unsigned targetLine;
+ unsigned targetColumn;
+ QString targetInitial;
+
CppTools::CppRefactoringFileConstPtr targetFile;
CPlusPlus::Function *targetFunction;
CPlusPlus::DeclarationAST *targetDeclaration;