summaryrefslogtreecommitdiffstats
path: root/lib/cppparser/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cppparser/ast.h')
-rw-r--r--lib/cppparser/ast.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/lib/cppparser/ast.h b/lib/cppparser/ast.h
index b8756bf3..c9750faf 100644
--- a/lib/cppparser/ast.h
+++ b/lib/cppparser/ast.h
@@ -21,9 +21,9 @@
#define __ast_h
#include <memory>
-#include <qstring.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
#include <ksharedptr.h>
#if defined( Q_OS_WIN32 ) || defined( Q_CC_SUN )
@@ -180,7 +180,7 @@ enum NodeType
NodeType_Custom = 2000
};
-QString nodeTypeToString( int type );
+TQString nodeTypeToString( int type );
#if defined(CPPPARSER_QUICK_ALLOCATOR)
@@ -205,7 +205,7 @@ QString nodeTypeToString( int type );
struct Slice
{
- QString source;
+ TQString source;
int position;
int length;
@@ -215,13 +215,13 @@ struct Slice
class CommentAST {
- QString m_comment;
+ TQString m_comment;
public:
- void setComment( const QString& comment ) {
+ void setComment( const TQString& comment ) {
m_comment = comment;
}
- void addComment( const QString& comment ) {
+ void addComment( const TQString& comment ) {
if( !m_comment.isEmpty() ) {
m_comment += "\n(" + comment + ")";
} else {
@@ -229,7 +229,7 @@ class CommentAST {
}
}
- QString comment() const {
+ TQString comment() const {
return m_comment;
}
@@ -263,18 +263,18 @@ public:
void getEndPosition( int* line, int* col ) const;
#ifndef CPPPARSER_NO_CHILDREN
- QPtrList<AST> children() { return m_children; }
+ TQPtrList<AST> children() { return m_children; }
void appendChild( AST* child );
void removeChild( AST* child );
#endif
- virtual inline QString text() const
+ virtual inline TQString text() const
{ return m_slice.source.mid(m_slice.position, m_slice.length); }
inline void setSlice( const Slice& slice )
{ m_slice = slice; }
- inline void setSlice( const QString &text, int position, int length )
+ inline void setSlice( const TQString &text, int position, int length )
{
CommentAST a;
m_slice.source = text;
@@ -282,7 +282,7 @@ public:
m_slice.length = length;
}
- inline void setText(const QString &text)
+ inline void setText(const TQString &text)
{ setSlice(text, 0, text.length()); }
private:
@@ -292,7 +292,7 @@ private:
int m_endLine, m_endColumn;
Slice m_slice;
#ifndef CPPPARSER_NO_CHILDREN
- QPtrList<AST> m_children;
+ TQPtrList<AST> m_children;
#endif
private:
@@ -311,13 +311,13 @@ public:
public:
GroupAST();
- QPtrList<AST> nodeList() { return m_nodeList; }
+ TQPtrList<AST> nodeList() { return m_nodeList; }
void addNode( AST::Node& node );
- virtual QString text() const;
+ virtual TQString text() const;
private:
- QPtrList<AST> m_nodeList;
+ TQPtrList<AST> m_nodeList;
private:
GroupAST( const GroupAST& source );
@@ -337,12 +337,12 @@ public:
TemplateArgumentListAST();
void addArgument( AST::Node& arg );
- QPtrList<AST> argumentList() { return m_argumentList; }
+ TQPtrList<AST> argumentList() { return m_argumentList; }
- virtual QString text() const;
+ virtual TQString text() const;
private:
- QPtrList<AST> m_argumentList;
+ TQPtrList<AST> m_argumentList;
private:
TemplateArgumentListAST( const TemplateArgumentListAST& source );
@@ -366,7 +366,7 @@ public:
TemplateArgumentListAST* templateArgumentList() { return m_templateArgumentList.get(); }
void setTemplateArgumentList( TemplateArgumentListAST::Node& templateArgumentList );
- virtual QString text() const;
+ virtual TQString text() const;
private:
AST::Node m_name;
@@ -392,17 +392,17 @@ public:
void setGlobal( bool b );
void addClassOrNamespaceName( ClassOrNamespaceNameAST::Node& classOrNamespaceName );
- QPtrList<ClassOrNamespaceNameAST> classOrNamespaceNameList() { return m_classOrNamespaceNameList; }
+ TQPtrList<ClassOrNamespaceNameAST> classOrNamespaceNameList() { return m_classOrNamespaceNameList; }
ClassOrNamespaceNameAST* unqualifiedName() { return m_unqualifiedName.get(); }
void setUnqualifiedName( ClassOrNamespaceNameAST::Node& unqualifiedName );
- virtual QString text() const;
+ virtual TQString text() const;
private:
bool m_global;
ClassOrNamespaceNameAST::Node m_unqualifiedName;
- QPtrList<ClassOrNamespaceNameAST> m_classOrNamespaceNameList;
+ TQPtrList<ClassOrNamespaceNameAST> m_classOrNamespaceNameList;
private:
NameAST( const NameAST& source );
@@ -470,13 +470,13 @@ public:
public:
AccessDeclarationAST();
- QPtrList<AST> accessList() { return m_accessList; }
+ TQPtrList<AST> accessList() { return m_accessList; }
void addAccess( AST::Node& access );
- virtual QString text() const;
+ virtual TQString text() const;
private:
- QPtrList<AST> m_accessList;
+ TQPtrList<AST> m_accessList;
private:
AccessDeclarationAST( const AccessDeclarationAST& source );
@@ -503,7 +503,7 @@ public:
GroupAST* cv2Qualify() { return m_cv2Qualify.get(); }
void setCv2Qualify( GroupAST::Node& cv2Qualify );
- virtual QString text() const;
+ virtual TQString text() const;
private:
NameAST::Node m_name;
@@ -557,10 +557,10 @@ public:
BaseClauseAST();
void addBaseSpecifier( BaseSpecifierAST::Node& baseSpecifier );
- QPtrList<BaseSpecifierAST> baseSpecifierList() { return m_baseSpecifierList; }
+ TQPtrList<BaseSpecifierAST> baseSpecifierList() { return m_baseSpecifierList; }
private:
- QPtrList<BaseSpecifierAST> m_baseSpecifierList;
+ TQPtrList<BaseSpecifierAST> m_baseSpecifierList;
private:
BaseClauseAST( const BaseClauseAST& source );
@@ -587,14 +587,14 @@ public:
BaseClauseAST* baseClause() { return m_baseClause.get(); }
void setBaseClause( BaseClauseAST::Node& baseClause );
- QPtrList<DeclarationAST> declarationList() { return m_declarationList; }
+ TQPtrList<DeclarationAST> declarationList() { return m_declarationList; }
void addDeclaration( DeclarationAST::Node& declaration );
private:
GroupAST::Node m_winDeclSpec;
AST::Node m_classKey;
BaseClauseAST::Node m_baseClause;
- QPtrList<DeclarationAST> m_declarationList;
+ TQPtrList<DeclarationAST> m_declarationList;
private:
ClassSpecifierAST( const ClassSpecifierAST& source );
void operator = ( const ClassSpecifierAST& source );
@@ -638,10 +638,10 @@ public:
EnumSpecifierAST();
void addEnumerator( EnumeratorAST::Node& enumerator );
- QPtrList<EnumeratorAST> enumeratorList() { return m_enumeratorList; }
+ TQPtrList<EnumeratorAST> enumeratorList() { return m_enumeratorList; }
private:
- QPtrList<EnumeratorAST> m_enumeratorList;
+ TQPtrList<EnumeratorAST> m_enumeratorList;
private:
EnumSpecifierAST( const EnumSpecifierAST& source );
@@ -662,7 +662,7 @@ public:
AST* kind() { return m_kind.get(); }
void setKind( AST::Node& kind );
- virtual QString text() const;
+ virtual TQString text() const;
private:
AST::Node m_kind;
@@ -685,10 +685,10 @@ public:
LinkageBodyAST();
void addDeclaration( DeclarationAST::Node& ast );
- QPtrList<DeclarationAST> declarationList() { return m_declarationList; }
+ TQPtrList<DeclarationAST> declarationList() { return m_declarationList; }
private:
- QPtrList<DeclarationAST> m_declarationList;
+ TQPtrList<DeclarationAST> m_declarationList;
private:
LinkageBodyAST( const LinkageBodyAST& source );
@@ -836,7 +836,7 @@ public:
public:
DeclaratorAST();
- QPtrList<AST> ptrOpList() { return m_ptrOpList; }
+ TQPtrList<AST> ptrOpList() { return m_ptrOpList; }
void addPtrOp( AST::Node& ptrOp );
DeclaratorAST* subDeclarator() { return m_subDeclarator.get(); }
@@ -848,7 +848,7 @@ public:
AST* bitfieldInitialization() { return m_bitfieldInitialization.get(); }
void setBitfieldInitialization( AST::Node& bitfieldInitialization );
- QPtrList<AST> arrayDimensionList() { return m_arrayDimensionList; }
+ TQPtrList<AST> arrayDimensionList() { return m_arrayDimensionList; }
void addArrayDimension( AST::Node& arrayDimension );
class ParameterDeclarationClauseAST* parameterDeclarationClause() { return m_parameterDeclarationClause.get(); }
@@ -862,11 +862,11 @@ public:
void setExceptionSpecification( GroupAST::Node& exceptionSpecification );
private:
- QPtrList<AST> m_ptrOpList;
+ TQPtrList<AST> m_ptrOpList;
AUTO_PTR<DeclaratorAST> m_subDeclarator;
NameAST::Node m_declaratorId;
AST::Node m_bitfieldInitialization;
- QPtrList<AST> m_arrayDimensionList;
+ TQPtrList<AST> m_arrayDimensionList;
AUTO_PTR<class ParameterDeclarationClauseAST> m_parameterDeclarationClause;
AST::Node m_constant;
GroupAST::Node m_exceptionSpecification;
@@ -896,7 +896,7 @@ public:
AST* expression() { return m_expression.get(); }
void setExpression( AST::Node& expression );
- virtual QString text() const;
+ virtual TQString text() const;
private:
TypeSpecifierAST::Node m_typeSpec;
@@ -919,13 +919,13 @@ public:
public:
ParameterDeclarationListAST();
- QPtrList<ParameterDeclarationAST> parameterList() { return m_parameterList; }
+ TQPtrList<ParameterDeclarationAST> parameterList() { return m_parameterList; }
void addParameter( ParameterDeclarationAST::Node& parameter );
- virtual QString text() const;
+ virtual TQString text() const;
private:
- QPtrList<ParameterDeclarationAST> m_parameterList;
+ TQPtrList<ParameterDeclarationAST> m_parameterList;
private:
ParameterDeclarationListAST( const ParameterDeclarationListAST& source );
@@ -949,7 +949,7 @@ public:
AST* ellipsis() { return m_ellipsis.get(); }
void setEllipsis( AST::Node& ellipsis );
- virtual QString text() const;
+ virtual TQString text() const;
private:
ParameterDeclarationListAST::Node m_parameterDeclarationList;
@@ -998,11 +998,11 @@ public:
public:
InitDeclaratorListAST();
- QPtrList<InitDeclaratorAST> initDeclaratorList() { return m_initDeclaratorList; }
+ TQPtrList<InitDeclaratorAST> initDeclaratorList() { return m_initDeclaratorList; }
void addInitDeclarator( InitDeclaratorAST::Node& decl );
private:
- QPtrList<InitDeclaratorAST> m_initDeclaratorList;
+ TQPtrList<InitDeclaratorAST> m_initDeclaratorList;
private:
InitDeclaratorListAST( const InitDeclaratorListAST& source );
@@ -1072,11 +1072,11 @@ public:
public:
TemplateParameterListAST();
- QPtrList<TemplateParameterAST> templateParameterList() { return m_templateParameterList; }
+ TQPtrList<TemplateParameterAST> templateParameterList() { return m_templateParameterList; }
void addTemplateParameter( TemplateParameterAST::Node& templateParameter );
private:
- QPtrList<TemplateParameterAST> m_templateParameterList;
+ TQPtrList<TemplateParameterAST> m_templateParameterList;
private:
TemplateParameterListAST( const TemplateParameterListAST& source );
@@ -1403,11 +1403,11 @@ public:
public:
StatementListAST();
- QPtrList<StatementAST> statementList() { return m_statementList; }
+ TQPtrList<StatementAST> statementList() { return m_statementList; }
void addStatement( StatementAST::Node& statement );
private:
- QPtrList<StatementAST> m_statementList;
+ TQPtrList<StatementAST> m_statementList;
private:
StatementListAST( const StatementListAST& source );
@@ -1451,11 +1451,11 @@ public:
public:
CatchStatementListAST();
- QPtrList<CatchStatementAST> statementList() { return m_statementList; }
+ TQPtrList<CatchStatementAST> statementList() { return m_statementList; }
void addStatement( CatchStatementAST::Node& statement );
private:
- QPtrList<CatchStatementAST> m_statementList;
+ TQPtrList<CatchStatementAST> m_statementList;
private:
CatchStatementListAST( const CatchStatementListAST& source );
@@ -1565,10 +1565,10 @@ public:
TranslationUnitAST();
void addDeclaration( DeclarationAST::Node& ast );
- QPtrList<DeclarationAST> declarationList() { return m_declarationList; }
+ TQPtrList<DeclarationAST> declarationList() { return m_declarationList; }
private:
- QPtrList<DeclarationAST> m_declarationList;
+ TQPtrList<DeclarationAST> m_declarationList;
private:
TranslationUnitAST( const TranslationUnitAST& source );