Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.h

    r6b0b624 r30f9072  
    1010// Created On       : Sun May 17 21:53:34 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Jul 22 09:50:25 2017
    13 // Update Count     : 15
     12// Last Modified On : Wed Jun 21 17:25:26 2017
     13// Update Count     : 14
    1414//
    1515
    16 #pragma once
     16#ifndef AUTOGEN_H
     17#define AUTOGEN_H
    1718
    18 #include <string>
    19 #include "SynTree/Statement.h"
    20 #include "SynTree/Expression.h"
    21 #include "SynTree/Declaration.h"
    22 #include "SynTree/Initializer.h"
    23 #include "InitTweak/InitTweak.h"
     19#include <cassert>                // for assert
     20#include <iterator>               // for back_insert_iterator, back_inserter
     21#include <list>                   // for list
     22#include <string>                 // for string, operator==
     23
     24#include "Common/UniqueName.h"    // for UniqueName
     25#include "InitTweak/InitTweak.h"  // for InitExpander
     26#include "Parser/LinkageSpec.h"   // for C
     27#include "SynTree/Constant.h"     // for Constant
     28#include "SynTree/Declaration.h"  // for ObjectDecl, Declaration (ptr only)
     29#include "SynTree/Expression.h"   // for UntypedExpr, NameExpr, VariableExpr
     30#include "SynTree/Initializer.h"  // for SingleInit
     31#include "SynTree/Label.h"        // for Label, noLabels
     32#include "SynTree/Statement.h"    // for Statement (ptr only), CompoundStmt
     33#include "SynTree/Type.h"         // for Type, ArrayType, Type::Qualifiers
    2434
    2535namespace SymTab {
     
    154164                if ( isUnnamedBitfield( obj ) ) return;
    155165
    156                 bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && obj->get_bitfieldWidth() == NULL ) );
     166                bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && ! obj->get_bitfieldWidth() ) );
    157167                std::list< Statement * > stmts;
    158168                genCall( srcParam, dstParam, fname, back_inserter( stmts ), obj->get_type(), addCast, forward );
     
    173183        }
    174184} // namespace SymTab
    175 
    176 // Local Variables: //
    177 // tab-width: 4 //
    178 // mode: c++ //
    179 // compile-command: "make install" //
    180 // End: //
    181 
     185#endif // AUTOGEN_H
Note: See TracChangeset for help on using the changeset viewer.