languages/cpp/ast_utils.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2002 by Roberto Raggi * 00003 * roberto@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef __ast_utils_h 00013 #define __ast_utils_h 00014 00015 #include <qstring.h> 00016 00017 class AST; 00018 class DeclaratorAST; 00019 class TypeSpecifierAST; 00020 class QStringList; 00021 00022 namespace KTextEditor{ class EditInterface; } 00023 00024 AST* findNodeAt( AST* unit, int line, int column ); 00025 void scopeOfNode( AST* ast, QStringList& ); 00026 QString typeSpecToString( TypeSpecifierAST* typeSpec ); 00027 QString declaratorToString( DeclaratorAST* declarator, const QString& scope = QString::null, bool skipPtrOp=false ); 00028 00029 #endif // __ast_utils_h