Lines Matching refs:CurDecl
4065 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4067 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()
4069 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()
4071 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4075 << CurDecl << FunctionKind << RetValExp->getSourceRange(); in BuildReturnStmt()
4087 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4088 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()
4089 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4105 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4106 Diag(ReturnLoc, D) << CurDecl << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()
4112 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
4115 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()
4117 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()
4119 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
4123 << CurDecl << FunctionKind << RetValExp->getSourceRange(); in BuildReturnStmt()