/frameworks/compile/slang/ |
D | slang_rs_export_var.cpp | 43 const clang::VarDecl *VD, in RSExportVar() argument 46 mName(VD->getName().data(), VD->getName().size()), in RSExportVar() 53 const clang::Expr *Initializer = VD->getAnyInitializer(); in RSExportVar() 77 ReportVarError(Context, VD->getLocation(), in RSExportVar() 98 ReportVarError(Context, VD->getLocation(), in RSExportVar() 111 clang::QualType QT = VD->getTypeSourceInfo()->getType(); in RSExportVar()
|
D | slang_rs_check_ast.cpp | 189 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { in ValidateVarDecl() argument 190 if (!VD) { in ValidateVarDecl() 194 clang::QualType QT = VD->getType(); in ValidateVarDecl() 196 if (VD->getFormalLinkage() == clang::ExternalLinkage) { in ValidateVarDecl() 199 if (!RSExportType::NormalizeType(T, TypeName, &mDiagEngine, VD)) { in ValidateVarDecl() 205 if (mInKernel && VD->isStaticLocal()) { in ValidateVarDecl() 208 clang::FullSourceLoc(VD->getLocation(), mSM), in ValidateVarDecl() 212 << VD->getName(); in ValidateVarDecl() 217 if (!RSExportType::ValidateVarDecl(VD, mTargetAPI, mIsFilterscript)) { in ValidateVarDecl() 219 } else if (clang::Expr *Init = VD->getInit()) { in ValidateVarDecl() [all …]
|
D | slang_rs_object_ref_count.h | 57 inline void addRSObject(clang::VarDecl* VD) { in addRSObject() argument 58 mRSO.push_back(VD); in addRSObject() 64 void AppendRSObjectInit(clang::VarDecl *VD, 71 static clang::Stmt *ClearRSObject(clang::VarDecl *VD, 93 static bool InitializeRSObject(clang::VarDecl *VD,
|
D | slang_rs_export_type.cpp | 86 const clang::VarDecl *VD, 122 const clang::VarDecl *VD, in ConstantArrayTypeExportableHelper() argument 127 ReportTypeError(DiagEngine, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 137 ReportTypeError(DiagEngine, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 143 ReportTypeError(DiagEngine, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 149 if (TypeExportableHelper(ElementType, SPS, DiagEngine, VD, in ConstantArrayTypeExportableHelper() 161 clang::VarDecl const *VD, in TypeExportableHelper() argument 193 ReportTypeError(DiagEngine, VD, T->getAsUnionType()->getDecl(), in TypeExportableHelper() 236 if (!TypeExportableHelper(FT, SPS, DiagEngine, VD, TopLevelRecord)) { in TypeExportableHelper() 262 ReportTypeError(DiagEngine, VD, TopLevelRecord, in TypeExportableHelper() [all …]
|
D | slang_rs_object_ref_count.cpp | 1142 clang::VarDecl *VD, in AppendRSObjectInit() argument 1146 slangAssert(VD); in AppendRSObjectInit() 1160 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1165 VD, in AppendRSObjectInit() 1209 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1214 VD, in AppendRSObjectInit() 1250 clang::VarDecl *VD = *I; in InsertLocalVarDestructors() local 1251 clang::Stmt *RSClearObjectCall = ClearRSObject(VD, VD->getDeclContext()); in InsertLocalVarDestructors() 1256 VD->getSourceRange().getBegin()); in InsertLocalVarDestructors() 1265 clang::VarDecl *VD, in ClearRSObject() argument [all …]
|
D | slang_rs_context.cpp | 87 bool RSContext::processExportVar(const clang::VarDecl *VD) { in processExportVar() argument 88 slangAssert(!VD->getName().empty() && "Variable name should not be empty"); in processExportVar() 92 RSExportType *ET = RSExportType::CreateFromDecl(this, VD); in processExportVar() 96 RSExportVar *EV = new RSExportVar(this, VD, ET); in processExportVar() 236 clang::VarDecl *VD = (clang::VarDecl*) (*DI); in processExport() local 237 if (VD->getFormalLinkage() == clang::ExternalLinkage) { in processExport() 238 if (!processExportVar(VD)) { in processExport()
|
D | slang_rs_export_var.h | 49 const clang::VarDecl *VD,
|
D | slang_rs_check_ast.h | 68 void ValidateVarDecl(clang::VarDecl *VD);
|
D | slang_rs_export_type.h | 158 const clang::VarDecl *VD); 170 static bool ValidateVarDecl(clang::VarDecl *VD, unsigned int TargetAPI, 176 const clang::VarDecl *VD);
|
D | slang_rs_context.h | 93 bool processExportVar(const clang::VarDecl *VD);
|