Searched refs:CurDecl (Results 1 – 7 of 7) sorted by relevance
122 for (const auto *CurDecl : Declarations) { in onEndOfTranslationUnit() local123 if (CurDecl->hasDefinition() || CurDecl->isReferenced()) { in onEndOfTranslationUnit()126 if (FriendTypes.count(CurDecl->getTypeForDecl()) != 0) { in onEndOfTranslationUnit()129 if (CurDecl->getLocation().isMacroID() || in onEndOfTranslationUnit()130 CurDecl->getLocation().isInvalid()) { in onEndOfTranslationUnit()135 if (Decl == CurDecl) { in onEndOfTranslationUnit()138 if (!CurDecl->hasDefinition() && in onEndOfTranslationUnit()139 !haveSameNamespaceOrTranslationUnit(CurDecl, Decl)) { in onEndOfTranslationUnit()140 diag(CurDecl->getLocation(), in onEndOfTranslationUnit()143 << CurDecl << getNameOfNamespace(Decl); in onEndOfTranslationUnit()[all …]
3247 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3249 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()3251 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()3253 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()3257 << CurDecl->getDeclName() << FunctionKind in BuildReturnStmt()3266 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3267 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()3268 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()3284 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3286 << CurDecl->getDeclName() << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()[all …]
1276 CXXRecordDecl *CurDecl; in isCurrentClassName() local1279 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC); in isCurrentClassName()1281 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()1283 if (CurDecl && CurDecl->getIdentifier()) in isCurrentClassName()1284 return &II == CurDecl->getIdentifier(); in isCurrentClassName()1297 CXXRecordDecl *CurDecl; in isCurrentClassNameTypo() local1300 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC); in isCurrentClassNameTypo()1302 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()1304 if (CurDecl && CurDecl->getIdentifier() && II != CurDecl->getIdentifier() && in isCurrentClassNameTypo()1305 3 * II->getName().edit_distance(CurDecl->getIdentifier()->getName()) in isCurrentClassNameTypo()[all …]
3741 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3743 if (isa<ObjCMethodDecl>(CurDecl)) in BuildReturnStmt()3745 else if (isa<CXXConstructorDecl>(CurDecl)) in BuildReturnStmt()3747 else if (isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()3751 << CurDecl << FunctionKind << RetValExp->getSourceRange(); in BuildReturnStmt()3759 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3760 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()3761 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()3777 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local3778 Diag(ReturnLoc, D) << CurDecl << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()[all …]
2381 CXXRecordDecl *CurDecl = getCurrentClass(S, SS); in isCurrentClassName() local2382 return CurDecl && &II == CurDecl->getIdentifier(); in isCurrentClassName()2394 CXXRecordDecl *CurDecl; in isCurrentClassNameTypo() local2397 CurDecl = dyn_cast_or_null<CXXRecordDecl>(DC); in isCurrentClassNameTypo()2399 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()2401 if (CurDecl && CurDecl->getIdentifier() && II != CurDecl->getIdentifier() && in isCurrentClassNameTypo()2402 3 * II->getName().edit_distance(CurDecl->getIdentifier()->getName()) in isCurrentClassNameTypo()2404 II = CurDecl->getIdentifier(); in isCurrentClassNameTypo()
2088 const Decl *CurDecl = dyn_cast_or_null<Decl>(Context); in EvaluateInContext() local2090 CurDecl ? PredefinedExpr::ComputeName(PredefinedExpr::Function, CurDecl) in EvaluateInContext()
10795 for (auto *CurDecl : in forEachMultiversionedFunctionVersion() local10797 FunctionDecl *CurFD = CurDecl->getAsFunction()->getMostRecentDecl(); in forEachMultiversionedFunctionVersion()