Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r90e683b r956b389  
    306306enum class EnumAttribute{ Value, Posn, Label };
    307307
    308 /// enum declaration `enum Foo { ... };` or `enum(...) Foo { ... };`
     308/// enum declaration `enum Foo { ... };`
    309309class EnumDecl final : public AggregateDecl {
    310310public:
     
    317317        std::vector< ast::ptr<ast::EnumInstType>> inlinedDecl; // child enums
    318318
    319         bool is_c_enum     () const { return !isCfa; }
    320         bool is_opaque_enum() const { return isCfa && nullptr == base; }
    321         bool is_typed_enum () const { return isCfa && nullptr != base; }
    322 
    323319        EnumDecl( const CodeLocation& loc, const std::string& name, bool isCfa = false,
    324320                std::vector<ptr<Attribute>>&& attrs = {}, Linkage::Spec linkage = Linkage::Cforall,
     
    335331        const char * typeString() const override { return aggrString( Enum ); }
    336332
     333        bool isTyped() const;
     334        bool isOpaque() const;
    337335private:
    338336        EnumDecl * clone() const override { return new EnumDecl{ *this }; }
Note: See TracChangeset for help on using the changeset viewer.