| 6 | namespace das { |
| 7 | |
| 8 | void setParents ( Module * mod, const char * child, const std::initializer_list<const char *> & parents ) { |
| 9 | auto chA = mod->findAnnotation(child); |
| 10 | DAS_VERIFYF(chA,"missing child annotation"); |
| 11 | DAS_VERIFYF(chA->rtti_isBasicStructureAnnotation(),"expecting basic structure annotation"); |
| 12 | auto bsaCh = (BasicStructureAnnotation *) chA; |
| 13 | for ( auto parent : parents ) { |
| 14 | auto chP = mod->findAnnotation(parent); |
| 15 | DAS_VERIFYF(chP,"missing parent annotation"); |
| 16 | bsaCh->parents.push_back((TypeAnnotation *)chP); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | uint64_t BasicStructureAnnotation::getOwnSemanticHash ( HashBuilder & hb, das_set<Structure *> & dep, das_set<Annotation *> & adep ) const { |
| 21 | hb.updateString(getMangledName()); |
nothing calls this directly
no test coverage detected