KDevelop API Documentation

ast_utils.cpp File Reference

#include "ast_utils.h"
#include "ast.h"
#include <qstringlist.h>
#include <qregexp.h>
#include <klocale.h>
#include <kdebug.h>
#include <kapplication.h>
#include <ktexteditor/editinterface.h>

Include dependency graph for ast_utils.cpp:

Include dependency graph

Go to the source code of this file.

Functions

ASTfindNodeAt (AST *node, int line, int column)
void scopeOfNode (AST *ast, QStringList &scope)
QString typeSpecToString (TypeSpecifierAST *typeSpec)
QString declaratorToString (DeclaratorAST *declarator, const QString &scope, bool skipPtrOp)


Function Documentation

QString declaratorToString DeclaratorAST declarator,
const QString scope,
bool  skipPtrOp
 

Definition at line 118 of file ast_utils.cpp.

References DeclaratorAST::arrayDimensionList(), DeclaratorAST::constant(), DeclaratorAST::declaratorId(), DeclaratorAST::parameterDeclarationClause(), ParameterDeclarationClauseAST::parameterDeclarationList(), ParameterDeclarationListAST::parameterList(), DeclaratorAST::ptrOpList(), DeclaratorAST::subDeclarator(), text(), NameAST::text(), and typeSpecToString().

Referenced by CppCodeCompletion::computeContext(), CppSupportPart::MakeMemberHelper(), StoreWalker::parseFunctionArguments(), and TagCreator::parseFunctionArguments().

AST* findNodeAt AST node,
int  line,
int  column
 

Definition at line 24 of file ast_utils.cpp.

References AST::children(), AST::getEndPosition(), and AST::getStartPosition().

Referenced by CppCodeCompletion::completeText(), CppSupportPart::MakeMemberHelper(), and CppSupportPart::slotNeedTextHint().

void scopeOfNode AST ast,
QStringList scope
 

Definition at line 57 of file ast_utils.cpp.

References NameAST::classOrNamespaceNameList(), InitDeclaratorAST::declarator(), DeclaratorAST::declaratorId(), FunctionDefinitionAST::initDeclarator(), AST::nodeType(), NodeType_ClassSpecifier, NodeType_FunctionDefinition, NodeType_Namespace, AST::parent(), and AST::text().

Referenced by CppCodeCompletion::completeText(), and CppSupportPart::MakeMemberHelper().

QString typeSpecToString TypeSpecifierAST typeSpec  ) 
 

Todo:
remove

Definition at line 110 of file ast_utils.cpp.

References TypeSpecifierAST::text().

Referenced by declaratorToString(), and CppSupportPart::MakeMemberHelper().

KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:06:55 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003