KDevelop API Documentation

ast_utils.h File Reference

#include <qstring.h>

Include dependency graph for ast_utils.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  KTextEditor

Functions

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


Function Documentation

QString declaratorToString DeclaratorAST declarator,
const QString scope = QString::null,
bool  skipPtrOp = false
 

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(), NameAST::text(), text(), and typeSpecToString().

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

AST* findNodeAt AST unit,
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
 

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 Tue Feb 22 09:25:27 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003