Changes in src/AST/Decl.hpp [44547b0:e4d7c1c]
- File:
-
- 1 edited
-
src/AST/Decl.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r44547b0 re4d7c1c 315 315 // enum (type_optional) Name {...} 316 316 ptr<Type> base; // if isTyped == true && base.get() == nullptr, it is a "void" type enum 317 318 EnumDecl( const CodeLocation& loc, const std::string& name, bool isTyped = false, 317 enum class EnumHiding { Visible, Hide } hide; 318 319 EnumDecl( const CodeLocation& loc, const std::string& name, bool isTyped = false, 319 320 std::vector<ptr<Attribute>>&& attrs = {}, Linkage::Spec linkage = Linkage::Cforall, 320 Type const * base = nullptr, 321 Type const * base = nullptr, EnumHiding hide = EnumHiding::Hide, 321 322 std::unordered_map< std::string, long long > enumValues = std::unordered_map< std::string, long long >() ) 322 : AggregateDecl( loc, name, std::move(attrs), linkage ), isTyped(isTyped), base(base), enumValues(enumValues) {}323 : AggregateDecl( loc, name, std::move(attrs), linkage ), isTyped(isTyped), base(base), hide(hide), enumValues(enumValues) {} 323 324 324 325 /// gets the integer value for this enumerator, returning true iff value found … … 411 412 }; 412 413 413 class Inline ValueDecl final : public DeclWithType {414 class InlineMemberDecl final : public DeclWithType { 414 415 public: 415 416 ptr<Type> type; 416 417 417 Inline ValueDecl( const CodeLocation & loc, const std::string & name, const Type * type,418 InlineMemberDecl( const CodeLocation & loc, const std::string & name, const Type * type, 418 419 Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 419 420 std::vector< ptr<Attribute> > && attrs = {}, Function::Specs fs = {} ) … … 425 426 const DeclWithType * accept( Visitor& v ) const override { return v.visit( this ); } 426 427 private: 427 Inline ValueDecl * clone() const override { return new InlineValueDecl{ *this }; }428 InlineMemberDecl * clone() const override { return new InlineMemberDecl{ *this }; } 428 429 MUTATE_FRIEND 429 430 };
Note:
See TracChangeset
for help on using the changeset viewer.