- Timestamp:
- Jul 26, 2022, 2:17:49 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 1b97cc87
- Parents:
- 4c48be0 (diff), 3992098 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/AST
- Files:
-
- 2 edited
-
Decl.hpp (modified) (3 diffs)
-
Pass.impl.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r4c48be0 rdd33c1f 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 ), … … 143 143 FunctionDecl( const CodeLocation & loc, const std::string & name, std::vector<ptr<TypeDecl>>&& forall, 144 144 std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns, 145 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::C ,145 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 146 146 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, bool isVarArgs = false); 147 147 … … 149 149 std::vector<ptr<TypeDecl>>&& forall, std::vector<ptr<DeclWithType>>&& assertions, 150 150 std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns, 151 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::C ,151 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 152 152 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, bool isVarArgs = false); 153 153 -
src/AST/Pass.impl.hpp
r4c48be0 rdd33c1f 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.