Ignore:
Timestamp:
May 19, 2015, 7:57:09 AM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
a08ba92
Parents:
51587aa
Message:

licencing: fifth groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Common/SemanticError.cc

    r51587aa r01aeade  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // XXX.cc --
     7// SemanticError.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By :
    12 // Last Modified On :
    13 // Update Count     : 0
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue May 19 07:21:25 2015
     13// Update Count     : 1
    1414//
    15 /*
    16  * This file is part of the Cforall project
    17  *
    18  * $Id: SemanticError.cc,v 1.1 2002/04/27 19:57:10 rcbilson Exp $
    19  *
    20  */
    2115
    2216#include <iostream>
     
    2822#include "SemanticError.h"
    2923
    30 SemanticError::SemanticError()
    31 {
     24SemanticError::SemanticError() {
    3225}
    3326
    34 SemanticError::SemanticError( std::string error )
    35 {
    36   errors.push_back( std::string( "Error: " ) + error );
     27SemanticError::SemanticError( std::string error ) {
     28        errors.push_back( std::string( "Error: " ) + error );
    3729}
    3830
    39 void
    40 SemanticError::append( SemanticError &other )
    41 {
    42   errors.splice( errors.end(), other.errors );
     31void SemanticError::append( SemanticError &other ) {
     32        errors.splice( errors.end(), other.errors );
    4333}
    4434
    45 bool
    46 SemanticError::isEmpty() const
    47 {
    48   return errors.empty();
     35bool SemanticError::isEmpty() const {
     36        return errors.empty();
    4937}
    5038
    51 void
    52 SemanticError::print( std::ostream &os )
    53 {
    54   std::copy( errors.begin(), errors.end(), std::ostream_iterator< std::string >( os, "\n" ) );
     39void SemanticError::print( std::ostream &os ) {
     40        std::copy( errors.begin(), errors.end(), std::ostream_iterator< std::string >( os, "\n" ) );
    5541}
     42
    5643// Local Variables: //
    5744// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.