/frameworks/compile/slang/ |
H A D | slang_rs_export_var.cpp | 43 const clang::VarDecl *VD, 46 mName(VD->getName().data(), VD->getName().size()), 53 const clang::Expr *Initializer = VD->getAnyInitializer(); 77 ReportVarError(Context, VD->getLocation(), 98 ReportVarError(Context, VD->getLocation(), 111 clang::QualType QT = VD->getTypeSourceInfo()->getType(); 42 RSExportVar(RSContext *Context, const clang::VarDecl *VD, const RSExportType *ET) argument
|
H A D | slang_rs_check_ast.cpp | 77 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { argument 78 if (!VD) { 82 const clang::Type *T = VD->getType().getTypePtr(); 84 if (VD->getLinkage() == clang::ExternalLinkage) { 86 if (!RSExportType::NormalizeType(T, TypeName, &mDiagEngine, VD)) { 91 if (!RSExportType::ValidateVarDecl(VD, mTargetAPI, mIsFilterscript)) { 93 } else if (clang::Expr *Init = VD->getInit()) { 106 if (clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I)) { 107 ValidateVarDecl(VD); 143 if (clang::VarDecl *VD [all...] |
H A D | slang_rs_object_ref_count.h | 57 inline void addRSObject(clang::VarDecl* VD) { argument 58 mRSO.push_back(VD); 64 void AppendRSObjectInit(clang::VarDecl *VD, 71 static clang::Stmt *ClearRSObject(clang::VarDecl *VD, 91 // Return false if the type of variable declared in VD does not contain 93 static bool InitializeRSObject(clang::VarDecl *VD,
|
H A D | slang_rs_context.cpp | 86 bool RSContext::processExportVar(const clang::VarDecl *VD) { argument 87 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); 91 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); 95 RSExportVar *EV = new RSExportVar(this, VD, ET); 234 clang::VarDecl *VD = (clang::VarDecl*) (*DI); local 235 if (VD->getLinkage() == clang::ExternalLinkage) { 236 if (!processExportVar(VD)) {
|
H A D | slang_rs_export_type.cpp | 88 const clang::VarDecl *VD, 124 const clang::VarDecl *VD, 129 ReportTypeError(DiagEngine, VD, TopLevelRecord, 139 ReportTypeError(DiagEngine, VD, TopLevelRecord, 145 ReportTypeError(DiagEngine, VD, TopLevelRecord, 151 if (TypeExportableHelper(ElementType, SPS, DiagEngine, VD, 163 clang::VarDecl const *VD, 195 ReportTypeError(DiagEngine, VD, T->getAsUnionType()->getDecl(), 238 if (!TypeExportableHelper(FT, SPS, DiagEngine, VD, TopLevelRecord)) { 264 ReportTypeError(DiagEngine, VD, TopLevelRecor 120 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, clang::DiagnosticsEngine *DiagEngine, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument 159 TypeExportableHelper( clang::Type const *T, llvm::SmallPtrSet<clang::Type const *, 8> &SPS, clang::DiagnosticsEngine *DiagEngine, clang::VarDecl const *VD, clang::RecordDecl const *TopLevelRecord) argument 324 TypeExportable(const clang::Type *T, clang::DiagnosticsEngine *DiagEngine, const clang::VarDecl *VD) argument 333 ValidateRSObjectInVarDecl(clang::VarDecl *VD, bool InCompositeType, unsigned int TargetAPI) argument 391 clang::VarDecl *VD = (ND ? llvm::dyn_cast<clang::VarDecl>(ND) : NULL); local 544 NormalizeType(const clang::Type *&T, llvm::StringRef &TypeName, clang::DiagnosticsEngine *DiagEngine, const clang::VarDecl *VD) argument 585 ValidateVarDecl(clang::VarDecl *VD, unsigned int TargetAPI, bool IsFilterscript) argument 793 CreateFromDecl(RSContext *Context, const clang::VarDecl *VD) argument [all...] |
H A D | slang_rs_object_ref_count.cpp | 562 // Body -> "rsClearObject(&VD[rsIntIter]);" 1142 clang::VarDecl *VD, 1146 slangAssert(VD); 1160 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); 1165 VD, 1209 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); 1214 VD, 1250 clang::VarDecl *VD = *I; local 1251 clang::Stmt *RSClearObjectCall = ClearRSObject(VD, VD 1141 AppendRSObjectInit( clang::VarDecl *VD, clang::DeclStmt *DS, RSExportPrimitiveType::DataType DT, clang::Expr *InitExpr) argument 1264 ClearRSObject( clang::VarDecl *VD, clang::DeclContext *DC) argument 1303 InitializeRSObject(clang::VarDecl *VD, RSExportPrimitiveType::DataType *DT, clang::Expr **InitExpr) argument 1465 clang::VarDecl *VD = static_cast<clang::VarDecl*>(D); local 1537 clang::VarDecl *VD = llvm::dyn_cast<clang::VarDecl>(*I); local [all...] |