Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r94c98f0e r93c10de  
    1010// Created On       : Thu May 9 10:00:00 2019
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Apr  5 10:42:00 2023
    13 // Update Count     : 35
     12// Last Modified On : Thu Nov 24  9:44:00 2022
     13// Update Count     : 34
    1414//
    1515
     
    122122};
    123123
    124 /// Function variable arguments flag
    125 enum ArgumentFlag { FixedArgs, VariableArgs };
    126 
    127124/// Object declaration `int foo()`
    128125class FunctionDecl : public DeclWithType {
     
    147144                std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns,
    148145                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);
    150147
    151148        FunctionDecl( const CodeLocation & location, const std::string & name,
     
    153150                std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns,
    154151                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);
    156153
    157154        const Type * get_type() const override;
     
    316313public:
    317314        bool isTyped; // isTyped indicated if the enum has a declaration like:
    318         // enum (type_optional) Name {...}
     315        // enum (type_optional) Name {...} 
    319316        ptr<Type> base; // if isTyped == true && base.get() == nullptr, it is a "void" type enum
    320317        enum class EnumHiding { Visible, Hide } hide;
     
    374371};
    375372
    376 /// Assembly declaration: `asm ... ( "..." : ... )`
    377373class AsmDecl : public Decl {
    378374public:
Note: See TracChangeset for help on using the changeset viewer.