Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DForwardDeclarationNamespaceCheck.cpp122 for (const auto *CurDecl : Declarations) { in onEndOfTranslationUnit() local
123 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 …]
/external/clang/lib/Sema/
DSemaStmt.cpp3247 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
3249 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() local
3267 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()
3268 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
3284 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
3286 << CurDecl->getDeclName() << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()
[all …]
DSemaDeclCXX.cpp1276 CXXRecordDecl *CurDecl; in isCurrentClassName() local
1279 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() local
1300 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 …]
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp3741 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
3743 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() local
3760 if (isa<CXXConstructorDecl>(CurDecl) || in BuildReturnStmt()
3761 isa<CXXDestructorDecl>(CurDecl)) in BuildReturnStmt()
3777 NamedDecl *CurDecl = getCurFunctionOrMethodDecl(); in BuildReturnStmt() local
3778 Diag(ReturnLoc, D) << CurDecl << isa<CXXDestructorDecl>(CurDecl) in BuildReturnStmt()
[all …]
DSemaDeclCXX.cpp2381 CXXRecordDecl *CurDecl = getCurrentClass(S, SS); in isCurrentClassName() local
2382 return CurDecl && &II == CurDecl->getIdentifier(); in isCurrentClassName()
2394 CXXRecordDecl *CurDecl; in isCurrentClassNameTypo() local
2397 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()
/external/llvm-project/clang/lib/AST/
DExpr.cpp2088 const Decl *CurDecl = dyn_cast_or_null<Decl>(Context); in EvaluateInContext() local
2090 CurDecl ? PredefinedExpr::ComputeName(PredefinedExpr::Function, CurDecl) in EvaluateInContext()
DASTContext.cpp10795 for (auto *CurDecl : in forEachMultiversionedFunctionVersion() local
10797 FunctionDecl *CurFD = CurDecl->getAsFunction()->getMostRecentDecl(); in forEachMultiversionedFunctionVersion()