Changeset 3cc1111 for src/AST/Decl.hpp


Ignore:
Timestamp:
Nov 24, 2021, 3:16:15 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
0351e9f, 7770cc8
Parents:
2514f68b
Message:

Small fix in Decl.hpp and a new-ast function added in InitTweak?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r2514f68b r3cc1111  
    270270        : AggregateDecl( loc, name, std::move(attrs), linkage ), kind( kind ) {}
    271271
    272         bool is_coroutine() { return kind == Coroutine; }
    273         bool is_generator() { return kind == Generator; }
    274         bool is_monitor  () { return kind == Monitor  ; }
    275         bool is_thread   () { return kind == Thread   ; }
     272        bool is_coroutine() const { return kind == Coroutine; }
     273        bool is_generator() const { return kind == Generator; }
     274        bool is_monitor  () const { return kind == Monitor  ; }
     275        bool is_thread   () const { return kind == Thread   ; }
    276276
    277277        const Decl * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.