• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop QMake parser
 

KDevelop QMake parser

  • TQMake
  • ProjectAST
Public Types | Public Member Functions | Public Attributes | List of all members
TQMake::ProjectAST Class Reference

#include <qmakeast.h>

Inheritance diagram for TQMake::ProjectAST:
TQMake::AST

Public Types

enum  Kind { Project, Scope, FunctionScope, Empty }
 
enum  LineEnding { Unix, MacOS, Windows }
 
- Public Types inherited from TQMake::AST
enum  NodeType {
  ProjectAST, AssignmentAST, NewLineAST, CommentAST,
  IncludeAST, OrOperatorAST
}
 

Public Member Functions

 ProjectAST (Kind kind=Project)
 
virtual void writeBack (TQString &buffer)
 
bool isProject () const
 
bool isScope () const
 
bool isFunctionScope () const
 
bool isEmpty () const
 
void setFileName (const TQString &fileName)
 
TQString fileName () const
 
void setLineEnding (LineEnding)
 
LineEnding lineEnding ()
 
- Public Member Functions inherited from TQMake::AST
 AST (NodeType nodeType)
 
virtual void addChildAST (AST *node)
 
virtual void removeChildAST (AST *node)
 
virtual NodeType nodeType () const
 
void setDepth (int depth)
 
int depth () const
 
virtual TQString indentation ()
 

Public Attributes

TQString scopedID
 
TQString args
 
- Public Attributes inherited from TQMake::AST
TQValueList< AST * > m_children
 

Additional Inherited Members

- Protected Attributes inherited from TQMake::AST
NodeType m_nodeType
 

Detailed Description

Project AST node.

Represents complete projects, scopes and function scopes. Examples:

scopename{
var=value
}
function(args){
var=value
}

Definition at line 106 of file qmakeast.h.

Member Enumeration Documentation

◆ Kind

enum TQMake::ProjectAST::Kind

The kind of a project node.

Enumerator
Project 

Project.

Scope 

Scope.

FunctionScope 

FunctionScope.

Empty 

Project does not exist, the AST is empty.

Definition at line 109 of file qmakeast.h.

Constructor & Destructor Documentation

◆ ProjectAST()

TQMake::ProjectAST::ProjectAST ( Kind  kind = Project)
inline

Constructs a project node of given kind.

Definition at line 123 of file qmakeast.h.

Member Function Documentation

◆ isEmpty()

bool TQMake::ProjectAST::isEmpty ( ) const
inline
Returns
true if this node is empty.

Definition at line 134 of file qmakeast.h.

◆ isFunctionScope()

bool TQMake::ProjectAST::isFunctionScope ( ) const
inline
Returns
true if this node is a function scope.

Definition at line 132 of file qmakeast.h.

◆ isProject()

bool TQMake::ProjectAST::isProject ( ) const
inline
Returns
true if this node is a project.

Definition at line 128 of file qmakeast.h.

◆ isScope()

bool TQMake::ProjectAST::isScope ( ) const
inline
Returns
true if this node is a scope.

Definition at line 130 of file qmakeast.h.

◆ writeBack()

void TQMake::ProjectAST::writeBack ( TQString &  buffer)
virtual

Writes information stored in the AST into the buffer.

This is a default implementation which iterates over child nodes and calls writeBack for each child node.

Reimplemented from TQMake::AST.

Definition at line 70 of file qmakeast.cpp.

Member Data Documentation

◆ args

TQString TQMake::ProjectAST::args

Function arguments.

Empty for other kinds of projects.

Definition at line 145 of file qmakeast.h.

◆ scopedID

TQString TQMake::ProjectAST::scopedID

Scoped identifier (scope name or function name).

Definition at line 143 of file qmakeast.h.


The documentation for this class was generated from the following files:
  • qmakeast.h
  • qmakeast.cpp

KDevelop QMake parser

Skip menu "KDevelop QMake parser"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop QMake parser

Skip menu "KDevelop QMake parser"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop QMake parser by doxygen 1.8.13
This website is maintained by Timothy Pearson.