Home
last modified time | relevance | path

Searched refs:CurDecl (Results 1 – 3 of 3) sorted by relevance

/external/clang/lib/Sema/
DSemaStmt.cpp2890 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
2892 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()
2894 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()
2896 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
2900 << CurDecl->getDeclName() << FunctionKind in BuildReturnStmt()
2909 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
2910 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()
2911 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
2927 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
2929 << CurDecl->getDeclName() << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()
[all …]
DSemaDeclCXX.cpp1229 CXXRecordDecl *CurDecl; in isCurrentClassName() local
1232 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC); in isCurrentClassName()
1234 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()
1236 if (CurDecl && CurDecl->getIdentifier()) in isCurrentClassName()
1237 return &II == CurDecl->getIdentifier(); in isCurrentClassName()
1250 CXXRecordDecl *CurDecl; in isCurrentClassNameTypo() local
1253 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC); in isCurrentClassNameTypo()
1255 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()
1257 if (CurDecl && CurDecl->getIdentifier() && II != CurDecl->getIdentifier() && in isCurrentClassNameTypo()
1258 3 * II->getName().edit_distance(CurDecl->getIdentifier()->getName()) in isCurrentClassNameTypo()
[all …]
/external/clang/lib/CodeGen/
DCGExpr.cpp2039 const Decl *CurDecl = CurCodeDecl; in EmitPredefinedLValue() local
2040 if (!CurDecl || isa<VarDecl>(CurDecl)) in EmitPredefinedLValue()
2041 CurDecl = getContext().getTranslationUnitDecl(); in EmitPredefinedLValue()
2045 if (isa<BlockDecl>(CurDecl)) { in EmitPredefinedLValue()
2049 } else if (isa<CapturedDecl>(CurDecl)) { in EmitPredefinedLValue()
2052 FunctionName = PredefinedExpr::ComputeName(IdentType, CurDecl); in EmitPredefinedLValue()
2054 FunctionName = PredefinedExpr::ComputeName(IdentType, CurDecl); in EmitPredefinedLValue()