Changes in / [a57cb58:969b3fe]
- Location:
- src
- Files:
-
- 3 deleted
- 6 edited
-
ControlStruct/ExceptTranslate.cc (modified) (7 diffs)
-
Parser/ExpressionNode.cc (modified) (7 diffs)
-
Parser/TypeData.cc (modified) (2 diffs)
-
Parser/lex.ll (modified) (3 diffs)
-
Parser/parserutility.cc (modified) (2 diffs)
-
SynTree/Type.h (modified) (2 diffs)
-
libcfa/stdhdr/bfdlink.h (deleted)
-
libcfa/stdhdr/hwloc.h (deleted)
-
libcfa/stdhdr/krb5.h (deleted)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptTranslate.cc
ra57cb58 r969b3fe 10 10 // Created On : Wed Jun 14 16:49:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 18 10:09:00 201713 // Update Count : 412 // Last Modified On : Wed Jul 12 15:07:00 2017 13 // Update Count : 3 14 14 // 15 15 … … 50 50 LinkageSpec::Cforall, 51 51 /*bitfieldWidth*/ NULL, 52 new BasicType( noQualifiers, BasicType::SignedInt ),52 new BasicType( emptyQualifiers, BasicType::SignedInt ), 53 53 /*init*/ NULL 54 54 ); … … 59 59 /*bitfieldWidth*/ NULL, 60 60 new PointerType( 61 noQualifiers,62 new BasicType( noQualifiers, BasicType::SignedInt )61 emptyQualifiers, 62 new BasicType( emptyQualifiers, BasicType::SignedInt ) 63 63 ), 64 64 /*init*/ NULL … … 69 69 LinkageSpec::Cforall, 70 70 /*bitfieldWidth*/ NULL, 71 new BasicType( noQualifiers, BasicType::Bool),71 new BasicType(emptyQualifiers, BasicType::Bool), 72 72 /*init*/ NULL 73 73 ); … … 78 78 NULL, 79 79 new PointerType( 80 noQualifiers,80 emptyQualifiers, 81 81 new VoidType( 82 noQualifiers82 emptyQualifiers 83 83 ), 84 84 std::list<Attribute *>{new Attribute("unused")} … … 143 143 LinkageSpec::Cforall, 144 144 NULL, 145 new BasicType( noQualifiers, BasicType::SignedInt ),145 new BasicType( emptyQualifiers, BasicType::SignedInt ), 146 146 new SingleInit( throwStmt->get_expr() ) 147 147 ); … … 444 444 nullptr, 445 445 new StructInstType( 446 noQualifiers,446 emptyQualifiers, 447 447 hook_decl 448 448 ), -
src/Parser/ExpressionNode.cc
ra57cb58 r969b3fe 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 13:17:07 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Tus Jul 18 10:08:00201713 // Update Count : 5 5011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 15 16:09:04 2017 13 // Update Count : 549 14 14 // 15 15 … … 46 46 // type. 47 47 48 Type::Qualifiers noQualifiers; // no qualifiers on constants48 Type::Qualifiers emptyQualifiers; // no qualifiers on constants 49 49 50 50 static inline bool checkU( char c ) { return c == 'u' || c == 'U'; } … … 118 118 } // if 119 119 120 Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[Unsigned][size] ), str, v ) );120 Expression * ret = new ConstantExpr( Constant( new BasicType( emptyQualifiers, kind[Unsigned][size] ), str, v ) ); 121 121 delete &str; // created by lex 122 122 return ret; … … 153 153 } // if 154 154 155 Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, kind[complx][size] ), str, v ) );155 Expression * ret = new ConstantExpr( Constant( new BasicType( emptyQualifiers, kind[complx][size] ), str, v ) ); 156 156 delete &str; // created by lex 157 157 return ret; … … 159 159 160 160 Expression *build_constantChar( const std::string & str ) { 161 Expression * ret = new ConstantExpr( Constant( new BasicType( noQualifiers, BasicType::Char ), str, (unsigned long long int)(unsigned char)str[1] ) );161 Expression * ret = new ConstantExpr( Constant( new BasicType( emptyQualifiers, BasicType::Char ), str, (unsigned long long int)(unsigned char)str[1] ) ); 162 162 delete &str; // created by lex 163 163 return ret; … … 166 166 ConstantExpr *build_constantStr( const std::string & str ) { 167 167 // string should probably be a primitive type 168 ArrayType *at = new ArrayType( noQualifiers, new BasicType( Type::Qualifiers( Type::Const ), BasicType::Char ),168 ArrayType *at = new ArrayType( emptyQualifiers, new BasicType( Type::Qualifiers( Type::Const ), BasicType::Char ), 169 169 new ConstantExpr( Constant::from_ulong( str.size() + 1 - 2 ) ), // +1 for '\0' and -2 for '"' 170 170 false, false ); … … 176 176 177 177 Expression *build_constantZeroOne( const std::string & str ) { 178 Expression * ret = new ConstantExpr( Constant( str == "0" ? (Type *)new ZeroType( noQualifiers ) : (Type*)new OneType( noQualifiers ), str,178 Expression * ret = new ConstantExpr( Constant( str == "0" ? (Type *)new ZeroType( emptyQualifiers ) : (Type*)new OneType( emptyQualifiers ), str, 179 179 str == "0" ? (unsigned long long int)0 : (unsigned long long int)1 ) ); 180 180 delete &str; // created by lex -
src/Parser/TypeData.cc
ra57cb58 r969b3fe 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tus Jul 18 10:10:00 201713 // Update Count : 56 612 // Last Modified On : Fri Jul 14 16:58:00 2017 13 // Update Count : 565 14 14 // 15 15 … … 454 454 case TypeData::Builtin: 455 455 if(td->builtintype == DeclarationNode::Zero) { 456 return new ZeroType( noQualifiers );456 return new ZeroType( emptyQualifiers ); 457 457 } 458 458 else if(td->builtintype == DeclarationNode::One) { 459 return new OneType( noQualifiers );459 return new OneType( emptyQualifiers ); 460 460 } 461 461 else { -
src/Parser/lex.ll
ra57cb58 r969b3fe 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Tue Jul 18 07:11:48201713 * Update Count : 54 412 * Last Modified On : Sat Jul 15 15:46:34 2017 13 * Update Count : 542 14 14 */ 15 15 … … 232 232 int { KEYWORD_RETURN(INT); } 233 233 __int128 { KEYWORD_RETURN(INT); } // GCC 234 __int128_t { KEYWORD_RETURN(INT); } // GCC235 234 __label__ { KEYWORD_RETURN(LABEL); } // GCC 236 235 long { KEYWORD_RETURN(LONG); } … … 267 266 __typeof { KEYWORD_RETURN(TYPEOF); } // GCC 268 267 __typeof__ { KEYWORD_RETURN(TYPEOF); } // GCC 269 __uint128_t { KEYWORD_RETURN(INT); } // GCC270 268 union { KEYWORD_RETURN(UNION); } 271 269 unsigned { KEYWORD_RETURN(UNSIGNED); } -
src/Parser/parserutility.cc
ra57cb58 r969b3fe 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Sat May 16 15:30:39 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Tus Jul 18 10:12:00201713 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 28 22:11:32 2017 13 // Update Count : 7 14 14 // 15 15 … … 26 26 UntypedExpr *comparison = new UntypedExpr( new NameExpr( "?!=?" ) ); 27 27 comparison->get_args().push_back( orig ); 28 comparison->get_args().push_back( new ConstantExpr( Constant( new ZeroType( noQualifiers ), "0", (unsigned long long int)0 ) ) );28 comparison->get_args().push_back( new ConstantExpr( Constant( new ZeroType( emptyQualifiers ), "0", (unsigned long long int)0 ) ) ); 29 29 return new CastExpr( comparison, new BasicType( Type::Qualifiers(), BasicType::SignedInt ) ); 30 30 } -
src/SynTree/Type.h
ra57cb58 r969b3fe 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : T us Jul 18 10:06:00201713 // Update Count : 1 5011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 23 16:16:36 2017 13 // Update Count : 149 14 14 // 15 15 … … 172 172 }; 173 173 174 extern Type::Qualifiers noQualifiers; // no qualifiers on constants174 extern Type::Qualifiers emptyQualifiers; // no qualifiers on constants 175 175 176 176 class VoidType : public Type {
Note:
See TracChangeset
for help on using the changeset viewer.