Changeset 30f9072 for src/SymTab/Autogen.h
- Timestamp:
- Jul 12, 2017, 1:58:00 PM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.h
r3268a58 r30f9072 17 17 #define AUTOGEN_H 18 18 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 25 34 26 35 namespace SymTab { … … 155 164 if ( isUnnamedBitfield( obj ) ) return; 156 165 157 bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && obj->get_bitfieldWidth() == NULL) );166 bool addCast = (fname == "?{}" || fname == "^?{}") && ( !obj || ( obj && ! obj->get_bitfieldWidth() ) ); 158 167 std::list< Statement * > stmts; 159 168 genCall( srcParam, dstParam, fname, back_inserter( stmts ), obj->get_type(), addCast, forward );
Note: See TracChangeset
for help on using the changeset viewer.