Home
last modified time | relevance | path

Searched refs:ParentDecl (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseUsingCheck.cpp53 const auto *ParentDecl = Result.Nodes.getNodeAs<Decl>(ParentDeclName); in check() local
54 if (!ParentDecl) in check()
66 LastTagDeclRanges[ParentDecl] = MatchedTagDecl->getSourceRange(); in check()
131 auto LastTagDeclRange = LastTagDeclRanges.find(ParentDecl); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSmartPtrArrayMismatchCheck.cpp41 const auto *ParentDecl = ConstructParents.begin()->get<DeclaratorDecl>(); in getConstructedVarOrField() local
42 if (isa_and_nonnull<VarDecl, FieldDecl>(ParentDecl)) in getConstructedVarOrField()
43 return ParentDecl; in getConstructedVarOrField()
H A DForwardDeclarationNamespaceCheck.cpp104 const auto *ParentDecl = Decl->getLexicalParent(); in getNameOfNamespace() local
105 if (ParentDecl->getDeclKind() == Decl::TranslationUnit) { in getNameOfNamespace()
108 const auto *NsDecl = cast<NamespaceDecl>(ParentDecl); in getNameOfNamespace()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp100 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements() local
101 assert(ParentDecl && "missing parent"); in createSourceReplacements()
137 computeFunctionExtractionLocation(ParentDecl); in createSourceReplacements()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp114 const NamedDecl *ParentDecl = getParentFunctionDecl(ND); in WriteNamedDecl() local
115 if ((ParentDecl && ignoreDecl(ParentDecl)) || ignoreDecl(ND)) in WriteNamedDecl()
132 MangledSymbol(getMangledNames(ParentDecl).front(), in WriteNamedDecl()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp1727 for (const CXXRecordDecl *ParentDecl : typeParents(&CXXRD)) { in fillSuperTypes() local
1729 declToTypeHierarchyItem(*ParentDecl, TUPath)) { in fillSuperTypes()
1730 fillSuperTypes(*ParentDecl, TUPath, *ParentSym, RPSet); in fillSuperTypes()
2006 const CXXRecordDecl *ParentDecl = nullptr; in typeParents() local
2010 ParentDecl = RT->getAsCXXRecordDecl(); in typeParents()
2013 if (!ParentDecl) { in typeParents()
2020 ParentDecl = dyn_cast<CXXRecordDecl>(TD->getTemplatedDecl()); in typeParents()
2025 if (ParentDecl) in typeParents()
2026 Result.push_back(ParentDecl); in typeParents()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmtPrinter.cpp1561 FieldDecl *ParentDecl = in VisitMemberExpr() local
1565 if (!ParentDecl || !ParentDecl->isAnonymousStructOrUnion()) in VisitMemberExpr()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp5694 auto *ParentDecl = cast<RecordDecl>(CurContext); in BuildMicrosoftCAnonymousStruct() local
5699 FieldDecl::Create(Context, ParentDecl, DS.getBeginLoc(), DS.getBeginLoc(), in BuildMicrosoftCAnonymousStruct()
5720 ParentDecl->setInvalidDecl(); in BuildMicrosoftCAnonymousStruct()
7426 const CXXRecordDecl *ParentDecl = dyn_cast<CXXRecordDecl>(Ctxt); in ActOnVariableDeclarator() local
7427 if (ParentDecl && !ParentDecl->getDeclName()) { in ActOnVariableDeclarator()
7428 AnonStruct = ParentDecl; in ActOnVariableDeclarator()