Changes in src/AST/Decl.hpp [e4d7c1c:19a8c40]
- File:
-
- 1 edited
-
src/AST/Decl.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
re4d7c1c r19a8c40 315 315 // enum (type_optional) Name {...} 316 316 ptr<Type> base; // if isTyped == true && base.get() == nullptr, it is a "void" type enum 317 enum class EnumHiding { Visible, Hide } hide; 318 319 EnumDecl( const CodeLocation& loc, const std::string& name, bool isTyped = false, 317 318 EnumDecl( const CodeLocation& loc, const std::string& name, bool isTyped = false, 320 319 std::vector<ptr<Attribute>>&& attrs = {}, Linkage::Spec linkage = Linkage::Cforall, 321 Type const * base = nullptr, EnumHiding hide = EnumHiding::Hide,320 Type const * base = nullptr, 322 321 std::unordered_map< std::string, long long > enumValues = std::unordered_map< std::string, long long >() ) 323 : AggregateDecl( loc, name, std::move(attrs), linkage ), isTyped(isTyped), base(base), hide(hide),enumValues(enumValues) {}322 : AggregateDecl( loc, name, std::move(attrs), linkage ), isTyped(isTyped), base(base), enumValues(enumValues) {} 324 323 325 324 /// gets the integer value for this enumerator, returning true iff value found … … 398 397 }; 399 398 399 /// Static Assertion `_Static_assert( ... , ... );` 400 400 class StaticAssertDecl : public Decl { 401 401 public: … … 412 412 }; 413 413 414 /// Inline Member Declaration `inline TypeName;` 414 415 class InlineMemberDecl final : public DeclWithType { 415 416 public: … … 429 430 MUTATE_FRIEND 430 431 }; 432 431 433 } 432 434
Note:
See TracChangeset
for help on using the changeset viewer.