- Timestamp:
- May 23, 2019, 11:30:40 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d7aa12c
- Parents:
- e4b6cf78
- Location:
- src/AST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/AST/Decl.cpp ¶
re4b6cf78 r9d6e7fa9 72 72 // --- EnumDecl 73 73 74 bool EnumDecl::valueOf( Decl* enumerator, long long& value ) const {74 bool EnumDecl::valueOf( const Decl * enumerator, long long& value ) const { 75 75 if ( enumValues.empty() ) { 76 76 long long crntVal = 0; 77 for ( const Decl * member : members ) {77 for ( const Decl * member : members ) { 78 78 const ObjectDecl* field = strict_dynamic_cast< const ObjectDecl* >( member ); 79 79 if ( field->init ) { -
TabularUnified src/AST/Decl.hpp ¶
re4b6cf78 r9d6e7fa9 287 287 288 288 /// gets the integer value for this enumerator, returning true iff value found 289 bool valueOf( Decl* enumerator, long long& value ) const;289 bool valueOf( const Decl * enumerator, long long& value ) const; 290 290 291 291 const Decl * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset
for help on using the changeset viewer.