aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
diff options
context:
space:
mode:
authorRoberto Raggi <[email protected]>2010-05-20 13:44:38 +0200
committerRoberto Raggi <[email protected]>2010-05-20 15:22:09 +0200
commit3b113a2d7449344ef51e908c5a7d85e5a9eecdcc (patch)
treebe0f4f9d547e5f1f9ab1442950f87959c503a2eb /src/libs/cplusplus/DeprecatedGenTemplateInstance.h
parente07c34017e5fd9d9a9cb929c284be9004dd74b95 (diff)
Deprecate the old template instantiation.
Diffstat (limited to 'src/libs/cplusplus/DeprecatedGenTemplateInstance.h')
-rw-r--r--src/libs/cplusplus/DeprecatedGenTemplateInstance.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/libs/cplusplus/DeprecatedGenTemplateInstance.h b/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
new file mode 100644
index 00000000000..5d19b807b9f
--- /dev/null
+++ b/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
@@ -0,0 +1,64 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation ([email protected])
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
+#define CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
+
+#include <TypeVisitor.h>
+#include <NameVisitor.h>
+#include <FullySpecifiedType.h>
+
+#include "DeprecatedLookupContext.h"
+
+#include <QtCore/QList>
+#include <QtCore/QPair>
+
+namespace CPlusPlus {
+
+class CPLUSPLUS_EXPORT DeprecatedGenTemplateInstance
+{
+public:
+ typedef QList< QPair<const Identifier *, FullySpecifiedType> > Substitution;
+
+public:
+ static FullySpecifiedType instantiate(const Name *className, Symbol *candidate, Control *control);
+
+private:
+ DeprecatedGenTemplateInstance(Control *control, const Substitution &substitution);
+ FullySpecifiedType gen(Symbol *symbol);
+
+private:
+ Symbol *_symbol;
+ Control *_control;
+ const Substitution _substitution;
+};
+
+} // end of namespace CPlusPlus
+
+#endif // CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H