Changeset c6a1e8a for src/Common


Ignore:
Timestamp:
Jun 5, 2019, 8:36:48 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
866545b
Parents:
67130fe (diff), 3cd5fdd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

fix conflicit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/Indenter.h

    r67130fe rc6a1e8a  
    1818
    1919struct Indenter {
    20         static unsigned tabsize;
     20        static unsigned tabsize;  ///< default number of spaces in one level of indentation
    2121
    22         Indenter( unsigned int amt = tabsize, unsigned int indent = 0 ) : amt( amt ), indent( indent ) {}
    23         unsigned int amt;  // amount 1 level increases indent by (i.e. how much to increase by in operator++)
    24         unsigned int indent;
     22        unsigned int indent;      ///< number of spaces to indent
     23        unsigned int amt;         ///< spaces in one level of indentation
    2524
     25        Indenter( unsigned int indent = 0, unsigned int amt = tabsize )
     26        : indent( indent*amt ), amt( amt ) {}
     27       
    2628        Indenter & operator+=(int nlevels) { indent += amt*nlevels; return *this; }
    2729        Indenter & operator-=(int nlevels) { indent -= amt*nlevels; return *this; }
Note: See TracChangeset for help on using the changeset viewer.