Lines Matching refs:RD
386 void Backend::PadStruct(clang::RecordDecl* RD) { in PadStruct() argument
407 for (clang::Decl* D : RD->decls()) { in PadStruct()
446 clang::RecordDecl::Create(ASTC, clang::TTK_Struct, RD->getDeclContext(), in PadStruct()
450 RDForLayout->setTypeForDecl(RD->getTypeForDecl()); in PadStruct()
451 if (RD->hasAttrs()) in PadStruct()
452 RDForLayout->setAttrs(RD->getAttrs()); in PadStruct()
457 RD->removeDecl(info.second); in PadStruct()
513 std::cout << "PadStruct(" << RD->getNameAsString() << "):" << std::endl; in PadStruct()
519 if (foundPadding && Slang::IsLocInRSHeaderFile(RD->getLocation(), mSourceMgr)) { in PadStruct()
520 mContext->ReportError(RD->getLocation(), "system structure contains padding: '%0'") in PadStruct()
521 << RD->getName(); in PadStruct()
539 clang::FieldDecl::Create(ASTC, RD, clang::SourceLocation(), clang::SourceLocation(), in PadStruct()
547 RD->addDecl(FD); in PadStruct()
551 info.second->setLexicalDeclContext(RD); in PadStruct()
552 RD->addDecl(info.second); in PadStruct()