Ignore:
Timestamp:
Jun 29, 2017, 9:39:17 AM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
288eede, 8c680e9, ae47a23
Parents:
c89503c
Message:

update input file and formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/prettyprinter/token.cc

    rc89503c rc9383ee  
    1010// Created On       : Wed Jun 28 22:46:23 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun 28 23:06:07 2017
    13 // Update Count     : 8
     12// Last Modified On : Thu Jun 29 09:33:49 2017
     13// Update Count     : 9
    1414//
    1515
     
    2020#include "filter.h"
    2121
    22 Token::Token( const string &text, int kind ) : text(text), kind(kind) {
     22Token::Token( const string & text, int kind ) : text(text), kind(kind) {
    2323        left = down = NULL;
    2424} // Token::Token
    2525
    26 Token::Token( const string &text, list<string> &ws_list, int kind ) : text(text), kind(kind) {
     26Token::Token( const string & text, list<string> & ws_list, int kind ) : text(text), kind(kind) {
    2727//    cerr << "Token3 : text \"" << text << "\"";
    2828//    for ( list<string>::iterator i = ws_list.begin(); i != ws_list.end(); i ++ ) {
     
    3636} // Token::Token
    3737
    38 void Token::addLeftTail( Token *n ) {
    39         Token *p = this;
     38void Token::addLeftTail( Token * n ) {
     39        Token * p = this;
    4040        while ( p->left != 0 ) {
    4141                p = p->left;
     
    4444} // Token::addLeftTail
    4545
    46 void Token::addDownLeftTail( Token *n ) {
     46void Token::addDownLeftTail( Token * n ) {
    4747        if ( down == 0 ) {
    4848                down = n;
Note: See TracChangeset for help on using the changeset viewer.