Changes in src/AST/Decl.hpp [94c98f0e:93c10de]
- File:
-
- 1 edited
-
src/AST/Decl.hpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r94c98f0e r93c10de 10 10 // Created On : Thu May 9 10:00:00 2019 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Apr 5 10:42:00 202313 // Update Count : 3 512 // Last Modified On : Thu Nov 24 9:44:00 2022 13 // Update Count : 34 14 14 // 15 15 … … 122 122 }; 123 123 124 /// Function variable arguments flag125 enum ArgumentFlag { FixedArgs, VariableArgs };126 127 124 /// Object declaration `int foo()` 128 125 class FunctionDecl : public DeclWithType { … … 147 144 std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns, 148 145 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 149 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, ArgumentFlag isVarArgs = FixedArgs);146 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, bool isVarArgs = false); 150 147 151 148 FunctionDecl( const CodeLocation & location, const std::string & name, … … 153 150 std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns, 154 151 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 155 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, ArgumentFlag isVarArgs = FixedArgs);152 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, bool isVarArgs = false); 156 153 157 154 const Type * get_type() const override; … … 316 313 public: 317 314 bool isTyped; // isTyped indicated if the enum has a declaration like: 318 // enum (type_optional) Name {...} 315 // enum (type_optional) Name {...} 319 316 ptr<Type> base; // if isTyped == true && base.get() == nullptr, it is a "void" type enum 320 317 enum class EnumHiding { Visible, Hide } hide; … … 374 371 }; 375 372 376 /// Assembly declaration: `asm ... ( "..." : ... )`377 373 class AsmDecl : public Decl { 378 374 public:
Note:
See TracChangeset
for help on using the changeset viewer.