Lines Matching refs:CurDecl
4038 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4040 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()
4042 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()
4044 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4048 << CurDecl << FunctionKind << RetValExp->getSourceRange(); in BuildReturnStmt()
4060 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4061 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()
4062 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4078 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4079 Diag(ReturnLoc, D) << CurDecl << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()
4085 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4088 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()
4090 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()
4092 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4096 << CurDecl << FunctionKind << RetValExp->getSourceRange(); in BuildReturnStmt()