* ASBeautifier's constructor * This constructor is called only once for each source file. * The cloned ASBeautifier objects are created with the copy constructor. */
| 41 | * The cloned ASBeautifier objects are created with the copy constructor. |
| 42 | */ |
| 43 | ASBeautifier::ASBeautifier() |
| 44 | { |
| 45 | g_preprocessorCppExternCBracket = 0; |
| 46 | |
| 47 | waitingBeautifierStack = NULL; |
| 48 | activeBeautifierStack = NULL; |
| 49 | waitingBeautifierStackLengthStack = NULL; |
| 50 | activeBeautifierStackLengthStack = NULL; |
| 51 | |
| 52 | headerStack = NULL; |
| 53 | tempStacks = NULL; |
| 54 | blockParenDepthStack = NULL; |
| 55 | blockStatementStack = NULL; |
| 56 | parenStatementStack = NULL; |
| 57 | bracketBlockStateStack = NULL; |
| 58 | inStatementIndentStack = NULL; |
| 59 | inStatementIndentStackSizeStack = NULL; |
| 60 | parenIndentStack = NULL; |
| 61 | preprocIndentStack = NULL; |
| 62 | sourceIterator = NULL; |
| 63 | isModeManuallySet = false; |
| 64 | shouldForceTabIndentation = false; |
| 65 | setSpaceIndentation(4); |
| 66 | setMinConditionalIndentOption(MINCOND_TWO); |
| 67 | setMaxInStatementIndentLength(40); |
| 68 | classInitializerIndents = 1; |
| 69 | tabLength = 0; |
| 70 | setClassIndent(false); |
| 71 | setModifierIndent(false); |
| 72 | setSwitchIndent(false); |
| 73 | setCaseIndent(false); |
| 74 | setBlockIndent(false); |
| 75 | setBracketIndent(false); |
| 76 | setNamespaceIndent(false); |
| 77 | setLabelIndent(false); |
| 78 | setEmptyLineFill(false); |
| 79 | setCStyle(); |
| 80 | setPreprocDefineIndent(false); |
| 81 | setPreprocConditionalIndent(false); |
| 82 | setAlignMethodColon(false); |
| 83 | |
| 84 | // initialize ASBeautifier member vectors |
| 85 | beautifierFileType = 9; // reset to an invalid type |
| 86 | headers = new vector<const string*>; |
| 87 | nonParenHeaders = new vector<const string*>; |
| 88 | assignmentOperators = new vector<const string*>; |
| 89 | nonAssignmentOperators = new vector<const string*>; |
| 90 | preBlockStatements = new vector<const string*>; |
| 91 | preCommandHeaders = new vector<const string*>; |
| 92 | indentableHeaders = new vector<const string*>; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * ASBeautifier's copy constructor |
nothing calls this directly
no outgoing calls
no test coverage detected