Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DExtract.cpp100 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements() local
101 assert(ParentDecl && "missing parent"); in createSourceReplacements()
137 computeFunctionExtractionLocation(ParentDecl); in createSourceReplacements()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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()
/external/llvm-project/clang/lib/Frontend/
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()
/external/llvm-project/clang-tools-extra/clangd/
DXRefs.cpp1484 for (const CXXRecordDecl *ParentDecl : typeParents(&CXXRD)) { in fillSuperTypes() local
1486 declToTypeHierarchyItem(*ParentDecl)) { in fillSuperTypes()
1488 fillSuperTypes(*ParentDecl, ASTCtx, *ParentSym->parents, RPSet); in fillSuperTypes()
1561 const CXXRecordDecl *ParentDecl = nullptr; in typeParents() local
1565 ParentDecl = RT->getAsCXXRecordDecl(); in typeParents()
1568 if (!ParentDecl) { in typeParents()
1575 ParentDecl = dyn_cast<CXXRecordDecl>(TD->getTemplatedDecl()); in typeParents()
1580 if (ParentDecl) in typeParents()
1581 Result.push_back(ParentDecl); in typeParents()
/external/clang/lib/Sema/
DSemaChecking.cpp6496 const Decl *ParentDecl);
6499 const Decl *ParentDecl);
6591 const Decl *ParentDecl) { in EvalAddr() argument
6621 return EvalAddr(V->getInit(), refVars, ParentDecl); in EvalAddr()
6633 return EvalVal(U->getSubExpr(), refVars, ParentDecl); in EvalAddr()
6654 return EvalAddr(Base, refVars, ParentDecl); in EvalAddr()
6667 if (const Expr *LHS = EvalAddr(LHSExpr, refVars, ParentDecl)) in EvalAddr()
6675 return EvalAddr(C->getRHS(), refVars, ParentDecl); in EvalAddr()
6688 ParentDecl); in EvalAddr()
6711 return EvalAddr(SubExpr, refVars, ParentDecl); in EvalAddr()
[all …]
DSemaDecl.cpp4523 auto *ParentDecl = cast<RecordDecl>(CurContext); in BuildMicrosoftCAnonymousStruct() local
4528 ParentDecl, in BuildMicrosoftCAnonymousStruct()
4553 ParentDecl->setInvalidDecl(); in BuildMicrosoftCAnonymousStruct()
/external/clang/lib/AST/
DStmtPrinter.cpp1545 FieldDecl *ParentDecl = ParentMember in VisitMemberExpr() local
1548 if (!ParentDecl || !ParentDecl->isAnonymousStructOrUnion()) in VisitMemberExpr()
/external/llvm-project/clang/lib/AST/
DStmtPrinter.cpp1424 FieldDecl *ParentDecl = in VisitMemberExpr() local
1428 if (!ParentDecl || !ParentDecl->isAnonymousStructOrUnion()) in VisitMemberExpr()
/external/llvm-project/clang/lib/Sema/
DSemaDecl.cpp5264 auto *ParentDecl = cast<RecordDecl>(CurContext); in BuildMicrosoftCAnonymousStruct() local
5269 FieldDecl::Create(Context, ParentDecl, DS.getBeginLoc(), DS.getBeginLoc(), in BuildMicrosoftCAnonymousStruct()
5290 ParentDecl->setInvalidDecl(); in BuildMicrosoftCAnonymousStruct()
6957 const CXXRecordDecl *ParentDecl = dyn_cast<CXXRecordDecl>(Ctxt); in ActOnVariableDeclarator() local
6958 if (ParentDecl && !ParentDecl->getDeclName()) { in ActOnVariableDeclarator()
6959 AnonStruct = ParentDecl; in ActOnVariableDeclarator()