Home | History | Annotate | Download | only in slang

Lines Matching defs:VD

79 bool RSContext::processExportVar(const clang::VarDecl *VD) {
80 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
82 RSExportType *ET = RSExportType::CreateFromDecl(this, VD);
86 RSExportVar *EV = new RSExportVar(this, VD, ET);
237 clang::VarDecl* VD = llvm::dyn_cast<clang::VarDecl>(D);
239 if (VD->getFormalLinkage() == clang::ExternalLinkage) {
240 clang::QualType QT = VD->getTypeSourceInfo()->getType();
241 if (QT.isConstQualified() && !VD->hasInit()) {
242 if (Slang::IsLocInRSHeaderFile(VD->getLocation(),
249 DiagEngine->Report(VD->getLocation(), DiagEngine->getCustomDiagID(
252 << VD->getName();
256 if (valid && ShouldExportVariable && isSyntheticName(VD->getName()))
258 if (valid && ShouldExportVariable && !processExportVar(VD)) {
362 clang::VarDecl *const VD = clang::VarDecl::Create(
368 VD->setLexicalDeclContext(DC);
369 DC->addDecl(VD);
382 VD->setInit(CSCE);
384 mUsedByReducePragmaDummyVars.push_back(VD);