KDevelop API Documentation

astyle::ASBeautifier Class Reference

#include <astyle.h>

Inheritance diagram for astyle::ASBeautifier:

Inheritance graph
[legend]
Collaboration diagram for astyle::ASBeautifier:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ASBeautifier ()
 ASBeautifier's constructor.
virtual ~ASBeautifier ()
 ASBeautifier's destructor.
virtual void init (ASSourceIterator *iter)
 initialize the ASBeautifier.
virtual void init ()
 initialize the ASBeautifier.
virtual bool hasMoreLines () const
 check if there are any indented lines ready to be read by nextLine()
virtual string nextLine ()
 get the next indented line.
virtual string beautify (const string &line)
 beautify a line of source code.
void setTabIndentation (int length=4, bool forceTabs=false)
 indent using one tab per indentation
void setSpaceIndentation (int length=4)
 indent using a number of spaces per indentation.
void setMaxInStatementIndentLength (int max)
 set the maximum indentation between two lines in a multi-line statement.
void setMinConditionalIndentLength (int min)
 set the minimum indentation between two lines in a multi-line condition.
void setClassIndent (bool state)
 set the state of the class indentation option.
void setSwitchIndent (bool state)
 set the state of the switch indentation option.
void setCaseIndent (bool state)
 set the state of the case indentation option.
void setBracketIndent (bool state)
 set the state of the bracket indentation option.
void setBlockIndent (bool state)
 set the state of the block indentation option.
void setNamespaceIndent (bool state)
 set the state of the namespace indentation option.
void setLabelIndent (bool state)
 set the state of the label indentation option.
void setCStyle ()
 set indentation style to ANSI C/C++.
void setJavaStyle ()
 set indentation style to Java / K&R.
void setEmptyLineFill (bool state)
 set the state of the empty line fill option.
void setPreprocessorIndent (bool state)
 set the state of the preprocessor indentation option.

Protected Member Functions

int getNextProgramCharDistance (const string &line, int i)
 get distance to the next non-white sspace, non-comment character in the line.
bool isLegalNameChar (char ch) const
 check if a specific character can be used in a legal variable/method/class name
bool isWhiteSpace (char ch) const
 check if a specific character can be used in a legal variable/method/class name
const string * findHeader (const string &line, int i, const vector< const string * > &possibleHeaders, bool checkBoundry=true)
 check if a specific line position contains a header, out of several possible headers.
string trim (const string &str)
 trim removes the white space surrounding a line.
int indexOf (vector< const string * > &container, const string *element)
 find the index number of a string element in a container of strings

Private Member Functions

 ASBeautifier (const ASBeautifier &copy)
void operator= (ASBeautifier &)
void initStatic ()
void registerInStatementIndent (const string &line, int i, int spaceTabCount, int minIndent, bool updateParenStack)
 register an in-statement indent.
string preLineWS (int spaceTabCount, int tabCount)

Private Attributes

ASSourceIteratorsourceIterator
vector< ASBeautifier * > * waitingBeautifierStack
vector< ASBeautifier * > * activeBeautifierStack
vector< int > * waitingBeautifierStackLengthStack
vector< int > * activeBeautifierStackLengthStack
vector< const string * > * headerStack
vector< vector< const string * > * > * tempStacks
vector< int > * blockParenDepthStack
vector< bool > * blockStatementStack
vector< bool > * parenStatementStack
vector< int > * inStatementIndentStack
vector< int > * inStatementIndentStackSizeStack
vector< int > * parenIndentStack
vector< bool > * bracketBlockStateStack
string indentString
const string * currentHeader
const string * previousLastLineHeader
const string * immediatelyPreviousAssignmentOp
const string * probationHeader
bool isInQuote
bool isInComment
bool isInCase
bool isInQuestion
bool isInStatement
bool isInHeader
bool isCStyle
bool isInOperator
bool isInTemplate
bool isInConst
bool isInDefine
bool isInDefineDefinition
bool classIndent
bool isInClassHeader
bool isInClassHeaderTab
bool switchIndent
bool caseIndent
bool namespaceIndent
bool bracketIndent
bool blockIndent
bool labelIndent
bool preprocessorIndent
bool isInConditional
bool isMinimalConditinalIndentSet
bool shouldForceTabIndentation
int minConditionalIndent
int parenDepth
int indentLength
int blockTabCount
int leadingWhiteSpaces
int maxInStatementIndent
int templateDepth
char quoteChar
char prevNonSpaceCh
char currentNonSpaceCh
char currentNonLegalCh
char prevNonLegalCh
int prevFinalLineSpaceTabCount
int prevFinalLineTabCount
bool emptyLineFill
bool backslashEndsPrevLine
int defineTabCount

Static Private Attributes

vector< const string * > headers
vector< const string * > nonParenHeaders
vector< const string * > preprocessorHeaders
vector< const string * > preBlockStatements
vector< const string * > assignmentOperators
vector< const string * > nonAssignmentOperators
bool calledInitStatic = false

Constructor & Destructor Documentation

astyle::ASBeautifier::ASBeautifier  ) 
 

ASBeautifier's constructor.

Definition at line 167 of file ASBeautifier.cpp.

References activeBeautifierStack, activeBeautifierStackLengthStack, blockParenDepthStack, blockStatementStack, bracketBlockStateStack, headerStack, initStatic(), inStatementIndentStack, inStatementIndentStackSizeStack, isMinimalConditinalIndentSet, parenIndentStack, parenStatementStack, setBlockIndent(), setBracketIndent(), setCaseIndent(), setClassIndent(), setCStyle(), setEmptyLineFill(), setLabelIndent(), setMaxInStatementIndentLength(), setNamespaceIndent(), setPreprocessorIndent(), setSpaceIndentation(), setSwitchIndent(), shouldForceTabIndentation, sourceIterator, tempStacks, waitingBeautifierStack, and waitingBeautifierStackLengthStack.

Referenced by beautify().

astyle::ASBeautifier::~ASBeautifier  )  [virtual]
 

ASBeautifier's destructor.

Definition at line 297 of file ASBeautifier.cpp.

References blockParenDepthStack, blockStatementStack, bracketBlockStateStack, DELETE_CONTAINER, headerStack, inStatementIndentStack, inStatementIndentStackSizeStack, parenIndentStack, parenStatementStack, and tempStacks.

astyle::ASBeautifier::ASBeautifier const ASBeautifier copy  )  [private]
 

Definition at line 204 of file ASBeautifier.cpp.

References activeBeautifierStack, activeBeautifierStackLengthStack, backslashEndsPrevLine, blockIndent, blockParenDepthStack, blockStatementStack, blockTabCount, bracketBlockStateStack, bracketIndent, caseIndent, classIndent, currentHeader, currentNonLegalCh, currentNonSpaceCh, defineTabCount, emptyLineFill, headerStack, immediatelyPreviousAssignmentOp, indentLength, indentString, inStatementIndentStack, inStatementIndentStackSizeStack, isCStyle, isInCase, isInClassHeader, isInClassHeaderTab, isInComment, isInConditional, isInConst, isInDefine, isInDefineDefinition, isInHeader, isInOperator, isInQuestion, isInQuote, isInStatement, isInTemplate, labelIndent, leadingWhiteSpaces, maxInStatementIndent, minConditionalIndent, namespaceIndent, parenDepth, parenIndentStack, parenStatementStack, preprocessorIndent, prevFinalLineSpaceTabCount, prevFinalLineTabCount, previousLastLineHeader, prevNonLegalCh, prevNonSpaceCh, probationHeader, quoteChar, sourceIterator, switchIndent, templateDepth, tempStacks, waitingBeautifierStack, and waitingBeautifierStackLengthStack.


Member Function Documentation

string astyle::ASBeautifier::beautify const string &  originalLine  )  [virtual]
 

beautify a line of source code.

every line of source code in a source code file should be sent one after the other to the beautify method.

Returns:
the indented line.
Parameters:
originalLine the original unindented line.

Todo:
There is actually no more need for the global isInConst variable. The only reason for checking const is to see if there is a const immediately before an open-bracket. Since CONST is now put into probation and is checked during itspost-char, isImmediatelyAfterConst can be set by its own...

Definition at line 587 of file ASBeautifier.cpp.

References activeBeautifierStack, activeBeautifierStackLengthStack, ASBeautifier(), assignmentOperators, backslashEndsPrevLine, blockIndent, blockParenDepthStack, blockStatementStack, blockTabCount, bracketBlockStateStack, bracketIndent, classIndent, currentHeader, currentNonLegalCh, currentNonSpaceCh, defineTabCount, findHeader(), headers, headerStack, immediatelyPreviousAssignmentOp, indexOf(), inStatementIndentStack, inStatementIndentStackSizeStack, isCStyle, isInCase, isInClassHeader, isInClassHeaderTab, isInComment, isInConditional, isInDefine, isInDefineDefinition, isInHeader, isInOperator, isInQuestion, isInQuote, isInStatement, isInTemplate, isLegalNameChar(), isWhiteSpace(), leadingWhiteSpaces, minConditionalIndent, namespaceIndent, nonAssignmentOperators, nonParenHeaders, parenDepth, parenIndentStack, parenStatementStack, preBlockStatements, preLineWS(), preprocessorIndent, prevFinalLineSpaceTabCount, prevFinalLineTabCount, previousLastLineHeader, prevNonLegalCh, prevNonSpaceCh, probationHeader, quoteChar, registerInStatementIndent(), switchIndent, templateDepth, tempStacks, trim(), waitingBeautifierStack, and waitingBeautifierStackLengthStack.

Referenced by astyle::ASFormatter::nextLine(), and nextLine().

const string * astyle::ASBeautifier::findHeader const string &  line,
int  i,
const vector< const string * > &  possibleHeaders,
bool  checkBoundry = true
[protected]
 

check if a specific line position contains a header, out of several possible headers.

Returns:
a pointer to the found header. if no header was found then return NULL.

Definition at line 1811 of file ASBeautifier.cpp.

References isLegalNameChar().

Referenced by beautify().

int astyle::ASBeautifier::getNextProgramCharDistance const string &  line,
int  i
[protected]
 

get distance to the next non-white sspace, non-comment character in the line.

if no such character exists, return the length remaining to the end of the line.

Definition at line 1754 of file ASBeautifier.cpp.

References isWhiteSpace().

Referenced by registerInStatementIndent().

bool astyle::ASBeautifier::hasMoreLines  )  const [virtual]
 

check if there are any indented lines ready to be read by nextLine()

Returns:
are there any indented lines ready?

Reimplemented in astyle::ASFormatter.

Definition at line 564 of file ASBeautifier.cpp.

References astyle::ASSourceIterator::hasMoreLines(), and sourceIterator.

int astyle::ASBeautifier::indexOf vector< const string * > &  container,
const string *  element
[protected]
 

find the index number of a string element in a container of strings

Returns:
the index number of element in the ocntainer. -1 if element not found.
Parameters:
container a vector of strings.
element the element to find .

Definition at line 1886 of file ASBeautifier.cpp.

Referenced by beautify().

void astyle::ASBeautifier::init  )  [virtual]
 

initialize the ASBeautifier.

Definition at line 333 of file ASBeautifier.cpp.

References activeBeautifierStack, activeBeautifierStackLengthStack, backslashEndsPrevLine, blockParenDepthStack, blockStatementStack, blockTabCount, bracketBlockStateStack, currentNonLegalCh, currentNonSpaceCh, defineTabCount, headerStack, immediatelyPreviousAssignmentOp, INIT_CONTAINER, inStatementIndentStack, inStatementIndentStackSizeStack, isInCase, isInClassHeader, isInClassHeaderTab, isInComment, isInConditional, isInConst, isInDefine, isInDefineDefinition, isInHeader, isInOperator, isInQuestion, isInQuote, isInStatement, isInTemplate, leadingWhiteSpaces, parenDepth, parenIndentStack, parenStatementStack, prevFinalLineSpaceTabCount, prevFinalLineTabCount, previousLastLineHeader, prevNonLegalCh, prevNonSpaceCh, probationHeader, templateDepth, tempStacks, waitingBeautifierStack, and waitingBeautifierStackLengthStack.

Referenced by init().

void astyle::ASBeautifier::init ASSourceIterator iter  )  [virtual]
 

initialize the ASBeautifier.

init() should be called every time a ABeautifier object is to start beautifying a NEW source file. init() recieves a pointer to a DYNAMICALLY CREATED ASSourceIterator object that will be used to iterate through the source code. This object will be deleted during the ASBeautifier's destruction, and thus should not be deleted elsewhere.

Parameters:
iter a pointer to the DYNAMICALLY CREATED ASSourceIterator object.

Reimplemented in astyle::ASFormatter.

Definition at line 324 of file ASBeautifier.cpp.

References init(), and sourceIterator.

void astyle::ASBeautifier::initStatic  )  [private]
 

nonParenHeaders.push_back(&AS_ASM);

Definition at line 63 of file ASBeautifier.cpp.

References assignmentOperators, calledInitStatic, headers, nonAssignmentOperators, nonParenHeaders, and preBlockStatements.

Referenced by ASBeautifier().

bool astyle::ASBeautifier::isLegalNameChar char  ch  )  const [protected]
 

check if a specific character can be used in a legal variable/method/class name

Returns:
legality of the char.
Parameters:
ch the character to be checked.

Definition at line 1799 of file ASBeautifier.cpp.

References isCStyle.

Referenced by beautify(), findHeader(), astyle::ASFormatter::isPointerOrReference(), and astyle::ASFormatter::nextLine().

bool astyle::ASBeautifier::isWhiteSpace char  ch  )  const [protected]
 

check if a specific character can be used in a legal variable/method/class name

Returns:
legality of the char.
Parameters:
ch the character to be checked.

Definition at line 1874 of file ASBeautifier.cpp.

Referenced by astyle::ASFormatter::appendSpacePad(), beautify(), astyle::ASFormatter::getNextChar(), getNextProgramCharDistance(), astyle::ASFormatter::isBeforeComment(), astyle::ASFormatter::isPointerOrReference(), astyle::ASFormatter::nextLine(), astyle::ASFormatter::peekNextChar(), trim(), and astyle::ASFormatter::trimNewLine().

string astyle::ASBeautifier::nextLine  )  [virtual]
 

get the next indented line.

Returns:
indented line.

Reimplemented in astyle::ASFormatter.

Definition at line 574 of file ASBeautifier.cpp.

References beautify(), astyle::ASSourceIterator::nextLine(), and sourceIterator.

void astyle::ASBeautifier::operator= ASBeautifier  )  [private]
 

string astyle::ASBeautifier::preLineWS int  spaceTabCount,
int  tabCount
[private]
 

Definition at line 1691 of file ASBeautifier.cpp.

Referenced by beautify().

void astyle::ASBeautifier::registerInStatementIndent const string &  line,
int  i,
int  spaceTabCount,
int  minIndent,
bool  updateParenStack
[private]
 

register an in-statement indent.

Definition at line 1708 of file ASBeautifier.cpp.

References getNextProgramCharDistance(), indentLength, inStatementIndentStack, and parenIndentStack.

Referenced by beautify().

void astyle::ASBeautifier::setBlockIndent bool  state  ) 
 

set the state of the block indentation option.

If true, entire blocks will be indented one additional indent, similar to the GNU indent style.

Parameters:
state state of option.

Definition at line 470 of file ASBeautifier.cpp.

References blockIndent, and setBracketIndent().

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setBracketIndent bool  state  ) 
 

set the state of the bracket indentation option.

If true, brackets will be indented one additional indent.

Parameters:
state state of option.

Definition at line 459 of file ASBeautifier.cpp.

References bracketIndent.

Referenced by ASBeautifier(), KDevFormatter::KDevFormatter(), and setBlockIndent().

void astyle::ASBeautifier::setCaseIndent bool  state  ) 
 

set the state of the case indentation option.

If true, lines of 'case' statements will be indented one additional indent.

Parameters:
state state of option.

Definition at line 505 of file ASBeautifier.cpp.

References caseIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setClassIndent bool  state  ) 
 

set the state of the class indentation option.

If true, C++ class definitions will be indented one additional indent.

Parameters:
state state of option.

Definition at line 483 of file ASBeautifier.cpp.

References classIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setCStyle  ) 
 

set indentation style to ANSI C/C++.

Definition at line 392 of file ASBeautifier.cpp.

References isCStyle.

Referenced by ASBeautifier().

void astyle::ASBeautifier::setEmptyLineFill bool  state  ) 
 

set the state of the empty line fill option.

If true, empty lines will be filled with the whitespace. of their previous lines. If false, these lines will remain empty.

Parameters:
state state of option.

Definition at line 554 of file ASBeautifier.cpp.

References emptyLineFill.

Referenced by ASBeautifier().

void astyle::ASBeautifier::setJavaStyle  ) 
 

set indentation style to Java / K&R.

Definition at line 400 of file ASBeautifier.cpp.

References isCStyle.

Referenced by KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setLabelIndent bool  state  ) 
 

set the state of the label indentation option.

If true, labels will be indented one indent LESS than the current indentation level. If false, labels will be flushed to the left with NO indent at all.

Parameters:
state state of option.

Definition at line 530 of file ASBeautifier.cpp.

References labelIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setMaxInStatementIndentLength int  max  ) 
 

set the maximum indentation between two lines in a multi-line statement.

Parameters:
max maximum indentation length.

Definition at line 437 of file ASBeautifier.cpp.

References maxInStatementIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setMinConditionalIndentLength int  min  ) 
 

set the minimum indentation between two lines in a multi-line condition.

Parameters:
min minimal indentation length.

Definition at line 447 of file ASBeautifier.cpp.

References isMinimalConditinalIndentSet, and minConditionalIndent.

Referenced by KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setNamespaceIndent bool  state  ) 
 

set the state of the namespace indentation option.

If true, blocks of 'namespace' statements will be indented one additional indent. Otherwise, NO indentation will be added.

Parameters:
state state of option.

Definition at line 516 of file ASBeautifier.cpp.

References namespaceIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setPreprocessorIndent bool  state  ) 
 

set the state of the preprocessor indentation option.

If true, multiline #define statements will be indented.

Parameters:
state state of option.

Definition at line 541 of file ASBeautifier.cpp.

References preprocessorIndent.

Referenced by ASBeautifier().

void astyle::ASBeautifier::setSpaceIndentation int  length = 4  ) 
 

indent using a number of spaces per indentation.

Parameters:
length number of spaces per indent.

Definition at line 423 of file ASBeautifier.cpp.

References indentLength, indentString, length(), and minConditionalIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setSwitchIndent bool  state  ) 
 

set the state of the switch indentation option.

If true, blocks of 'switch' statements will be indented one additional indent.

Parameters:
state state of option.

Definition at line 494 of file ASBeautifier.cpp.

References switchIndent.

Referenced by ASBeautifier(), and KDevFormatter::KDevFormatter().

void astyle::ASBeautifier::setTabIndentation int  length = 4,
bool  forceTabs = false
 

indent using one tab per indentation

Definition at line 408 of file ASBeautifier.cpp.

References indentLength, indentString, minConditionalIndent, and shouldForceTabIndentation.

Referenced by KDevFormatter::KDevFormatter().

string astyle::ASBeautifier::trim const string &  str  )  [protected]
 

trim removes the white space surrounding a line.

Returns:
the trimmed line.
Parameters:
str the line to trim.

Definition at line 1903 of file ASBeautifier.cpp.

References isWhiteSpace().

Referenced by beautify(), and astyle::ASFormatter::nextLine().


Member Data Documentation

vector<ASBeautifier*>* astyle::ASBeautifier::activeBeautifierStack [private]
 

Definition at line 149 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector<int>* astyle::ASBeautifier::activeBeautifierStackLengthStack [private]
 

Definition at line 151 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector< const string * > astyle::ASBeautifier::assignmentOperators [static, private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 57 of file ASBeautifier.cpp.

Referenced by beautify(), and initStatic().

bool astyle::ASBeautifier::backslashEndsPrevLine [private]
 

Definition at line 206 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::blockIndent [private]
 

Definition at line 185 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setBlockIndent().

vector<int>* astyle::ASBeautifier::blockParenDepthStack [private]
 

Definition at line 154 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

vector<bool>* astyle::ASBeautifier::blockStatementStack [private]
 

Definition at line 155 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

int astyle::ASBeautifier::blockTabCount [private]
 

Definition at line 194 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector<bool>* astyle::ASBeautifier::bracketBlockStateStack [private]
 

Definition at line 160 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

bool astyle::ASBeautifier::bracketIndent [private]
 

Definition at line 184 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setBracketIndent().

bool astyle::ASBeautifier::calledInitStatic = false [static, private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 52 of file ASBeautifier.cpp.

Referenced by initStatic().

bool astyle::ASBeautifier::caseIndent [private]
 

Definition at line 182 of file astyle.h.

Referenced by ASBeautifier(), and setCaseIndent().

bool astyle::ASBeautifier::classIndent [private]
 

Definition at line 178 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setClassIndent().

const string* astyle::ASBeautifier::currentHeader [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 162 of file astyle.h.

Referenced by ASBeautifier(), and beautify().

char astyle::ASBeautifier::currentNonLegalCh [private]
 

Definition at line 201 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

char astyle::ASBeautifier::currentNonSpaceCh [private]
 

Definition at line 200 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

int astyle::ASBeautifier::defineTabCount [private]
 

Definition at line 207 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::emptyLineFill [private]
 

Definition at line 205 of file astyle.h.

Referenced by ASBeautifier(), and setEmptyLineFill().

vector< const string * > astyle::ASBeautifier::headers [static, private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 54 of file ASBeautifier.cpp.

Referenced by beautify(), and initStatic().

vector<const string*>* astyle::ASBeautifier::headerStack [private]
 

Definition at line 152 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

const string* astyle::ASBeautifier::immediatelyPreviousAssignmentOp [private]
 

Definition at line 164 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

int astyle::ASBeautifier::indentLength [private]
 

Definition at line 193 of file astyle.h.

Referenced by ASBeautifier(), registerInStatementIndent(), setSpaceIndentation(), and setTabIndentation().

string astyle::ASBeautifier::indentString [private]
 

Definition at line 161 of file astyle.h.

Referenced by ASBeautifier(), setSpaceIndentation(), and setTabIndentation().

vector<int>* astyle::ASBeautifier::inStatementIndentStack [private]
 

Definition at line 157 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), registerInStatementIndent(), and ~ASBeautifier().

vector<int>* astyle::ASBeautifier::inStatementIndentStackSizeStack [private]
 

Definition at line 158 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

bool astyle::ASBeautifier::isCStyle [private]
 

Definition at line 172 of file astyle.h.

Referenced by ASBeautifier(), beautify(), isLegalNameChar(), setCStyle(), and setJavaStyle().

bool astyle::ASBeautifier::isInCase [private]
 

Definition at line 168 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInClassHeader [private]
 

Definition at line 179 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInClassHeaderTab [private]
 

Definition at line 180 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInComment [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 167 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInConditional [private]
 

Definition at line 188 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInConst [private]
 

Definition at line 175 of file astyle.h.

Referenced by ASBeautifier(), and init().

bool astyle::ASBeautifier::isInDefine [private]
 

Definition at line 176 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInDefineDefinition [private]
 

Definition at line 177 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInHeader [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 171 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInOperator [private]
 

Definition at line 173 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInQuestion [private]
 

Definition at line 169 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInQuote [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 166 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInStatement [private]
 

Definition at line 170 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isInTemplate [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 174 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

bool astyle::ASBeautifier::isMinimalConditinalIndentSet [private]
 

Definition at line 189 of file astyle.h.

Referenced by ASBeautifier(), and setMinConditionalIndentLength().

bool astyle::ASBeautifier::labelIndent [private]
 

Definition at line 186 of file astyle.h.

Referenced by ASBeautifier(), and setLabelIndent().

int astyle::ASBeautifier::leadingWhiteSpaces [private]
 

Definition at line 195 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

int astyle::ASBeautifier::maxInStatementIndent [private]
 

Definition at line 196 of file astyle.h.

Referenced by ASBeautifier(), and setMaxInStatementIndentLength().

int astyle::ASBeautifier::minConditionalIndent [private]
 

Definition at line 191 of file astyle.h.

Referenced by ASBeautifier(), beautify(), setMinConditionalIndentLength(), setSpaceIndentation(), and setTabIndentation().

bool astyle::ASBeautifier::namespaceIndent [private]
 

Definition at line 183 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setNamespaceIndent().

vector< const string * > astyle::ASBeautifier::nonAssignmentOperators [static, private]
 

Definition at line 58 of file ASBeautifier.cpp.

Referenced by beautify(), and initStatic().

vector< const string * > astyle::ASBeautifier::nonParenHeaders [static, private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 55 of file ASBeautifier.cpp.

Referenced by beautify(), and initStatic().

int astyle::ASBeautifier::parenDepth [private]
 

Definition at line 192 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector<int>* astyle::ASBeautifier::parenIndentStack [private]
 

Definition at line 159 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), registerInStatementIndent(), and ~ASBeautifier().

vector<bool>* astyle::ASBeautifier::parenStatementStack [private]
 

Definition at line 156 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

vector< const string * > astyle::ASBeautifier::preBlockStatements [static, private]
 

Definition at line 56 of file ASBeautifier.cpp.

Referenced by beautify(), and initStatic().

vector<const string*> astyle::ASBeautifier::preprocessorHeaders [static, private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 140 of file astyle.h.

bool astyle::ASBeautifier::preprocessorIndent [private]
 

Definition at line 187 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setPreprocessorIndent().

int astyle::ASBeautifier::prevFinalLineSpaceTabCount [private]
 

Definition at line 203 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

int astyle::ASBeautifier::prevFinalLineTabCount [private]
 

Definition at line 204 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

const string* astyle::ASBeautifier::previousLastLineHeader [private]
 

Definition at line 163 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

char astyle::ASBeautifier::prevNonLegalCh [private]
 

Definition at line 202 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

char astyle::ASBeautifier::prevNonSpaceCh [private]
 

Definition at line 199 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

const string* astyle::ASBeautifier::probationHeader [private]
 

Definition at line 165 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

char astyle::ASBeautifier::quoteChar [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 198 of file astyle.h.

Referenced by ASBeautifier(), and beautify().

bool astyle::ASBeautifier::shouldForceTabIndentation [private]
 

Definition at line 190 of file astyle.h.

Referenced by ASBeautifier(), and setTabIndentation().

ASSourceIterator* astyle::ASBeautifier::sourceIterator [private]
 

Reimplemented in astyle::ASFormatter.

Definition at line 147 of file astyle.h.

Referenced by ASBeautifier(), hasMoreLines(), init(), and nextLine().

bool astyle::ASBeautifier::switchIndent [private]
 

Definition at line 181 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and setSwitchIndent().

int astyle::ASBeautifier::templateDepth [private]
 

Definition at line 197 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector< vector<const string*>* >* astyle::ASBeautifier::tempStacks [private]
 

Definition at line 153 of file astyle.h.

Referenced by ASBeautifier(), beautify(), init(), and ~ASBeautifier().

vector<ASBeautifier*>* astyle::ASBeautifier::waitingBeautifierStack [private]
 

Definition at line 148 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().

vector<int>* astyle::ASBeautifier::waitingBeautifierStackLengthStack [private]
 

Definition at line 150 of file astyle.h.

Referenced by ASBeautifier(), beautify(), and init().


The documentation for this class was generated from the following files:
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:31:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003