- Timestamp:
- Jul 26, 2022, 11:35:02 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 3992098, 7ce8873
- Parents:
- 5cf1228
- Location:
- src/AST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r5cf1228 re8616b6 108 108 ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type, 109 109 const Init * init = nullptr, Storage::Classes storage = {}, 110 Linkage::Spec linkage = Linkage::C , const Expr * bitWd = nullptr,110 Linkage::Spec linkage = Linkage::Cforall, const Expr * bitWd = nullptr, 111 111 std::vector< ptr<Attribute> > && attrs = {}, Function::Specs fs = {} ) 112 112 : DeclWithType( loc, name, storage, linkage, std::move(attrs), fs ), type( type ), -
src/AST/Pass.impl.hpp
r5cf1228 re8616b6 597 597 guard_symtab guard { *this }; 598 598 // implicit add __func__ identifier as specified in the C manual 6.4.2.2 599 // This is a C name and so has C linkage. 599 600 static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{ 600 601 CodeLocation{}, "__func__", … … 602 603 new ast::BasicType{ ast::BasicType::Char, ast::CV::Const }, 603 604 nullptr, VariableLen, DynamicDim 604 } 605 }, 606 nullptr, 607 ast::Storage::Classes(), 608 ast::Linkage::C, 605 609 } }; 606 610 __pass::symtab::addId( core, 0, func );
Note: See TracChangeset
for help on using the changeset viewer.