Changeset d3e4d6c for src/SynTree/Type.cc
- Timestamp:
- Aug 23, 2017, 6:22:07 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 87e08e24, cb811ac
- Parents:
- 9f07232 (diff), bd37119 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.cc
r9f07232 rd3e4d6c 64 64 const char * Type::QualifiersNames[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic" }; 65 65 66 Type * Type::stripDeclarator() {66 Type * Type::stripDeclarator() { 67 67 Type * type = this; 68 68 while ( Type * at = InitTweak::getPointerBase( type ) ) { … … 71 71 return type; 72 72 } 73 74 Type * Type::stripReferences() { 75 Type * type = this; 76 while ( ReferenceType * ref = dynamic_cast<ReferenceType *>( type ) ) { 77 type = ref->get_base(); 78 } 79 return type; 80 } 81 82 int Type::referenceDepth() const { return 0; } 73 83 74 84 void Type::print( std::ostream &os, int indent ) const {
Note:
See TracChangeset
for help on using the changeset viewer.