Lines Matching refs:VD
80 bool RSContext::processExportVar(const clang::VarDecl *VD) { in processExportVar() argument
81 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); in processExportVar()
83 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); in processExportVar()
87 RSExportVar *EV = new RSExportVar(this, VD, ET); in processExportVar()
238 clang::VarDecl* VD = llvm::cast<clang::VarDecl>(D); in processExports() local
240 if (VD->getFormalLinkage() == clang::ExternalLinkage) { in processExports()
241 clang::QualType QT = VD->getTypeSourceInfo()->getType(); in processExports()
242 if (QT.isConstQualified() && !VD->hasInit()) { in processExports()
243 if (Slang::IsLocInRSHeaderFile(VD->getLocation(), in processExports()
250 DiagEngine->Report(VD->getLocation(), DiagEngine->getCustomDiagID( in processExports()
253 << VD->getName(); in processExports()
257 if (valid && ShouldExportVariable && isSyntheticName(VD->getName())) in processExports()
259 if (valid && ShouldExportVariable && !processExportVar(VD)) { in processExports()
363 clang::VarDecl *const VD = clang::VarDecl::Create( in markUsedByReducePragma() local
369 VD->setLexicalDeclContext(DC); in markUsedByReducePragma()
370 DC->addDecl(VD); in markUsedByReducePragma()
383 VD->setInit(CSCE); in markUsedByReducePragma()
385 mUsedByReducePragmaDummyVars.push_back(VD); in markUsedByReducePragma()