/frameworks/compile/slang/ |
D | slang_rs_export_var.cpp | 30 const clang::VarDecl *VD, in RSExportVar() argument 32 : RSExportable(Context, RSExportable::EX_VAR, VD->getLocation()), in RSExportVar() 33 mName(VD->getName().data(), VD->getName().size()), in RSExportVar() 40 const clang::Expr *Initializer = VD->getAnyInitializer(); in RSExportVar() 64 Context->ReportError(VD->getLocation(), in RSExportVar() 86 VD->getLocation(), in RSExportVar() 98 clang::QualType QT = VD->getTypeSourceInfo()->getType(); in RSExportVar()
|
D | slang_rs_context.cpp | 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() [all …]
|
D | slang_rs_check_ast.cpp | 195 void RSCheckAST::ValidateVarDecl(clang::VarDecl *VD) { in ValidateVarDecl() argument 196 if (!VD || RSContext::isSyntheticName(VD->getName())) { in ValidateVarDecl() 200 clang::QualType QT = VD->getType(); in ValidateVarDecl() 202 if (VD->getFormalLinkage() == clang::ExternalLinkage) { in ValidateVarDecl() 205 if (!RSExportType::NormalizeType(T, TypeName, Context, VD, in ValidateVarDecl() 212 if (mInKernel && VD->isStaticLocal()) { in ValidateVarDecl() 215 VD->getLocation(), in ValidateVarDecl() 217 << VD->getName(); in ValidateVarDecl() 222 if (!RSExportType::ValidateVarDecl(Context, VD, mTargetAPI, mIsFilterscript)) { in ValidateVarDecl() 224 } else if (clang::Expr *Init = VD->getInit()) { in ValidateVarDecl() [all …]
|
D | slang_rs_export_type.cpp | 184 const clang::VarDecl *VD, 212 const clang::VarDecl *VD, in ConstantArrayTypeExportableHelper() argument 218 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 228 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 234 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper() 240 if (TypeExportableHelper(ElementType, SPS, Context, VD, in ConstantArrayTypeExportableHelper() 261 clang::VarDecl const *VD, in TypeExportableHelper() argument 285 ReportTypeError(Context, VD, T->getAsUnionType()->getDecl(), in TypeExportableHelper() 327 if (!TypeExportableHelper(FT, SPS, Context, VD, TopLevelRecord, in TypeExportableHelper() 348 ReportTypeError(Context, VD, TopLevelRecord, in TypeExportableHelper() [all …]
|
D | slang_rs_object_ref_count.cpp | 1074 clang::VarDecl *VD, in AppendRSObjectInit() argument 1078 slangAssert(VD); in AppendRSObjectInit() 1092 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1097 VD, in AppendRSObjectInit() 1123 VD->markUsed(C); in AppendRSObjectInit() 1159 const clang::Type *T = RSExportType::GetTypeOfDecl(VD); in AppendRSObjectInit() 1164 VD, in AppendRSObjectInit() 1210 for (clang::VarDecl* VD : mRSO) { in InsertLocalVarDestructors() 1211 clang::SourceLocation Loc = VD->getSourceRange().getBegin(); in InsertLocalVarDestructors() 1212 clang::Stmt* RSClearObjectCall = ClearRSObject(VD, DC); in InsertLocalVarDestructors() [all …]
|
D | slang_rs_object_ref_count.h | 64 inline void addRSObject(clang::VarDecl* VD) { in addRSObject() argument 65 mRSO.push_back(VD); in addRSObject() 70 void AppendRSObjectInit(clang::VarDecl *VD, 101 static clang::Stmt *ClearRSObject(clang::VarDecl *VD, 131 static bool InitializeRSObject(clang::VarDecl *VD,
|
D | slang_rs_ast_replace.cpp | 93 clang::VarDecl* VD; in VisitDeclStmt() local 94 if ((VD = llvm::dyn_cast<clang::VarDecl>(D))) { in VisitDeclStmt() 95 if (matchesExpr(VD->getInit())) { in VisitDeclStmt() 96 VD->setInit(mNewExpr); in VisitDeclStmt()
|
D | slang_rs_export_type.h | 262 const clang::VarDecl *VD, 276 static bool ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD, 283 const clang::VarDecl *VD = nullptr); 285 const clang::VarDecl *VD);
|
D | slang_rs_export_var.h | 49 const clang::VarDecl *VD,
|
D | slang_rs_check_ast.h | 72 void ValidateVarDecl(clang::VarDecl *VD);
|
D | slang_rs_context.h | 107 bool processExportVar(const clang::VarDecl *VD);
|