Ignore:
Timestamp:
Jul 12, 2017, 1:58:00 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, 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:
02d62bb
Parents:
3268a58
Message:

More cleanup on the headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.h

    r3268a58 r30f9072  
    1717#define AUTOGEN_H
    1818
    19 #include <string>
    20 #include "SynTree/Statement.h"
    21 #include "SynTree/Expression.h"
    22 #include "SynTree/Declaration.h"
    23 #include "SynTree/Initializer.h"
    24 #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
    2534
    2635namespace SymTab {
     
    155164                if ( isUnnamedBitfield( obj ) ) return;
    156165
    157                 bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && obj->get_bitfieldWidth() == NULL ) );
     166                bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && ! obj->get_bitfieldWidth() ) );
    158167                std::list< Statement * > stmts;
    159168                genCall( srcParam, dstParam, fname, back_inserter( stmts ), obj->get_type(), addCast, forward );
Note: See TracChangeset for help on using the changeset viewer.