| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | FunctionCognitiveComplexityCheck.cpp | 529 const auto *TheDecl = Result.Nodes.getNodeAs<FunctionDecl>("func"); in check() local 531 if (TheDecl) { in check() 532 assert(TheDecl->hasBody() && in check() 535 Loc = TheDecl->getLocation(); in check() 536 Visitor.TraverseDecl(const_cast<FunctionDecl *>(TheDecl), true); in check() 545 if (TheDecl) in check() 547 << TheDecl << Visitor.CC.Total << Threshold; in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | PrettyDeclStackTrace.h | 31 Decl *TheDecl; variable 38 : Context(Ctx), TheDecl(D), Loc(Loc), Message(Msg) {} in PrettyDeclStackTraceEntry()
|
| H A D | Stmt.h | 1832 LabelDecl *TheDecl; variable 1839 : ValueStmt(LabelStmtClass), TheDecl(D), SubStmt(substmt) { in LabelStmt() 1849 LabelDecl *getDecl() const { return TheDecl; } in getDecl() 1850 void setDecl(LabelDecl *D) { TheDecl = D; } in setDecl()
|
| H A D | DeclBase.h | 1242 const Decl *TheDecl; variable 1250 : TheDecl(theDecl), Loc(L), SM(sm), Message(Msg) {} in PrettyStackTraceDecl()
|
| H A D | ExprCXX.h | 925 MSPropertyDecl *TheDecl; variable 937 TheDecl(decl), MemberLoc(nameLoc), IsArrow(isArrow), in MSPropertyRefExpr() 977 MSPropertyDecl *getPropertyDecl() const { return TheDecl; } in getPropertyDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertUtils.cpp | 355 static bool isAliasDecl(ASTContext *Context, const Decl *TheDecl, in isAliasDecl() argument 357 const auto *VDecl = dyn_cast<VarDecl>(TheDecl); in isAliasDecl() 752 const ValueDecl *TheDecl = E->getDecl(); in VisitDeclRefExpr() local 753 if (areSameVariable(IndexVar, TheDecl) || in VisitDeclRefExpr() 754 exprReferencesVariable(IndexVar, E) || areSameVariable(EndVar, TheDecl) || in VisitDeclRefExpr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | ExprSequence.cpp | 132 for (const Decl *TheDecl : TheDeclStmt->decls()) { in getSequenceSuccessor() local 133 if (const auto *TheVarDecl = dyn_cast<VarDecl>(TheDecl)) { in getSequenceSuccessor()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | ExtractFunction.cpp | 501 const Decl *TheDecl; member 508 DeclInformation(const Decl *TheDecl, ZoneRelative DeclaredIn, in DeclInformation() 510 : TheDecl(TheDecl), DeclaredIn(DeclaredIn), DeclIndex(DeclIndex){}; in DeclInformation() 679 const ValueDecl *VD = dyn_cast_or_null<ValueDecl>(DeclInfo.TheDecl); in createParameters() 682 if (!VD || isa<FunctionDecl>(DeclInfo.TheDecl)) in createParameters()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 553 Sema::ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl, in ActOnLabelStmt() argument 556 if (TheDecl->getStmt()) { in ActOnLabelStmt() 566 << TheDecl << static_cast<int>(Status); in ActOnLabelStmt() 570 TheDecl->setStmt(LS); in ActOnLabelStmt() 571 if (!TheDecl->isGnuLocal()) { in ActOnLabelStmt() 572 TheDecl->setLocStart(IdentLoc); in ActOnLabelStmt() 573 if (!TheDecl->isMSAsmLabel()) { in ActOnLabelStmt() 576 TheDecl->setLocation(IdentLoc); in ActOnLabelStmt() 3275 LabelDecl *TheDecl) { in ActOnGotoStmt() argument 3277 TheDecl->markUsed(Context); in ActOnGotoStmt() [all …]
|
| H A D | Sema.cpp | 2265 if (CurBSI && CurBSI->TheDecl && in getCurBlock() 2266 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock()
|
| H A D | SemaExpr.cpp | 3531 currentDecl = BSI->TheDecl; in BuildPredefinedExpr() 4620 DC = BSI->TheDecl; in CreateUnaryExprOrTypeTraitExpr() 5843 DC = BSI->TheDecl; in CreateBuiltinArraySubscriptExpr() 15847 LabelDecl *TheDecl) { in ActOnAddrLabel() argument 15848 TheDecl->markUsed(Context); in ActOnAddrLabel() 16240 CurBlock->TheDecl->setSignatureAsWritten(Sig); in ActOnBlockArguments() 16248 CurBlock->TheDecl->setIsVariadic(isVariadic); in ActOnBlockArguments() 16286 CurBlock->TheDecl->setParams(Params); in ActOnBlockArguments() 16295 for (auto AI : CurBlock->TheDecl->parameters()) { in ActOnBlockArguments() 16296 AI->setOwningFunction(CurBlock->TheDecl); in ActOnBlockArguments() [all …]
|
| H A D | TreeTransform.h | 14349 blockScope->TheDecl->setIsVariadic(oldBlock->isVariadic()); in TransformBlockExpr() 14350 blockScope->TheDecl->setBlockMissingReturnType( in TransformBlockExpr() 14380 blockScope->TheDecl->setParams(params); in TransformBlockExpr()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 755 BlockDecl *TheDecl; 766 : CapturingScopeInfo(Diag, ImpCap_Block), TheDecl(Block), in BlockScopeInfo()
|
| H A D | Sema.h | 4945 StmtResult ActOnLabelStmt(SourceLocation IdentLoc, LabelDecl *TheDecl, 5021 LabelDecl *TheDecl); 5796 LabelDecl *TheDecl); 10306 NamedDecl *TheDecl);
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | Parser.cpp | 1126 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseDeclOrFunctionDefInternal() local 1128 DS.complete(TheDecl); in ParseDeclOrFunctionDefInternal() 1130 Decl* decls[] = {AnonRecord, TheDecl}; in ParseDeclOrFunctionDefInternal() 1133 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal() 1175 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal() local 1176 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal()
|
| H A D | ParseDecl.cpp | 1866 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseSimpleDeclaration() local 1868 DS.complete(TheDecl); in ParseSimpleDeclaration() 1870 Decl* decls[] = {AnonRecord, TheDecl}; in ParseSimpleDeclaration() 1873 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseSimpleDeclaration() 2119 Decl *TheDecl = ParseFunctionDefinition(D, ParsedTemplateInfo(), in ParseDeclGroup() local 2121 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclGroup() 4361 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseStructDeclaration() local 4364 DS.complete(TheDecl); in ParseStructDeclaration()
|
| H A D | ParseDeclCXX.cpp | 2741 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseCXXClassMemberDeclaration() local 2743 DS.complete(TheDecl); in ParseCXXClassMemberDeclaration() 2745 Decl *decls[] = {AnonRecord, TheDecl}; in ParseCXXClassMemberDeclaration() 2748 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseCXXClassMemberDeclaration()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclBase.cpp | 303 if (TheLoc.isInvalid() && TheDecl) in print() 304 TheLoc = TheDecl->getLocation(); in print() 313 if (const auto *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
|
| H A D | Decl.cpp | 84 if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation(); in print() 91 if (auto *ND = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 2203 E->TheDecl = readDeclAs<MSPropertyDecl>(); in VisitMSPropertyRefExpr()
|