- File:
-
- 1 edited
-
src/ControlStruct/ExceptDeclNew.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptDeclNew.cpp
re8616b6 r6a896b0 110 110 "parent", 111 111 new ast::PointerType( 112 new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) ) 112 new ast::StructInstType( "__cfavir_type_info", ast::CV::Const ) ), 113 nullptr, 114 ast::Storage::Classes(), 115 ast::Linkage::Cforall 113 116 ) ); 114 117 decl->body = true; … … 163 166 location, 164 167 "__cfavir_typeid", 165 new ast::PointerType( typeIdType ) 168 new ast::PointerType( typeIdType ), 169 nullptr, 170 ast::Storage::Classes(), 171 ast::Linkage::Cforall 166 172 ); 167 173 ast::ObjectDecl * size = new ast::ObjectDecl( 168 174 location, 169 175 "size", 170 new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype ) 176 new ast::TypeInstType( "size_t", ast::TypeDecl::Dtype ), 177 nullptr, 178 ast::Storage::Classes(), 179 ast::Linkage::Cforall 171 180 ); 172 181 ast::ObjectDecl * copy = new ast::ObjectDecl( 173 182 location, 174 183 "copy", 175 new ast::PointerType( createCopyFuncType( exceptionName, params ) ) 184 new ast::PointerType( createCopyFuncType( exceptionName, params ) ), 185 nullptr, 186 ast::Storage::Classes(), 187 ast::Linkage::Cforall 176 188 ); 177 189 ast::ObjectDecl * dtor = new ast::ObjectDecl( 178 190 location, 179 191 "^?{}", 180 new ast::PointerType( createDtorFuncType( exceptionName, params ) ) 192 new ast::PointerType( createDtorFuncType( exceptionName, params ) ), 193 nullptr, 194 ast::Storage::Classes(), 195 ast::Linkage::Cforall 181 196 ); 182 197 ast::ObjectDecl * msg = new ast::ObjectDecl( 183 198 location, 184 199 "msg", 185 new ast::PointerType( createMsgFuncType( exceptionName, params ) ) 200 new ast::PointerType( createMsgFuncType( exceptionName, params ) ), 201 nullptr, 202 ast::Storage::Classes(), 203 ast::Linkage::Cforall 186 204 ); 187 205 ast::StructDecl * decl = new ast::StructDecl( … … 211 229 "virtual_table", 212 230 new ast::PointerType( 213 createVTableInstType( exceptionName, params ) ) 231 createVTableInstType( exceptionName, params ) ), 232 nullptr, 233 ast::Storage::Classes(), 234 ast::Linkage::Cforall 214 235 ) ); 215 236 for ( ast::ptr<ast::Decl> const & member : members ) { … … 268 289 "this", 269 290 new ast::PointerType( 270 createExceptionInstType( exceptionName, params ) ) 291 createExceptionInstType( exceptionName, params ) ), 292 nullptr, 293 ast::Storage::Classes(), 294 ast::Linkage::Cforall 271 295 ), 272 296 new ast::ObjectDecl( … … 274 298 "that", 275 299 new ast::PointerType( 276 createExceptionInstType( exceptionName, params ) ) 300 createExceptionInstType( exceptionName, params ) ), 301 nullptr, 302 ast::Storage::Classes(), 303 ast::Linkage::Cforall 277 304 ), 278 305 }, 279 306 { 280 new ast::ObjectDecl( location, "", new ast::VoidType() ), 307 new ast::ObjectDecl( 308 location, 309 "", 310 new ast::VoidType(), 311 nullptr, 312 ast::Storage::Classes(), 313 ast::Linkage::Cforall 314 ), 281 315 }, 282 316 new ast::CompoundStmt( location, { … … 332 366 "this", 333 367 new ast::PointerType( 334 createExceptionInstType( exceptionName, params ) ) 368 createExceptionInstType( exceptionName, params ) ), 369 nullptr, 370 ast::Storage::Classes(), 371 ast::Linkage::Cforall 335 372 ), 336 373 }, … … 340 377 "", 341 378 new ast::PointerType( 342 new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) ) 379 new ast::BasicType( ast::BasicType::Char, ast::CV::Const ) ), 380 nullptr, 381 ast::Storage::Classes(), 382 ast::Linkage::Cforall 343 383 ), 344 384 }, … … 392 432 tableName, 393 433 createVTableInstType( exceptionName, params ), 394 new ast::ListInit( location, std::move( inits ), std::move( dsigs ) ) 434 new ast::ListInit( location, std::move( inits ), std::move( dsigs ) ), 435 ast::Storage::Classes(), 436 ast::Linkage::Cforall 395 437 ); 396 438 }
Note:
See TracChangeset
for help on using the changeset viewer.