| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnusedUsingDeclsCheck.cpp | 34 static bool shouldCheckDecl(const Decl *TargetDecl) { in shouldCheckDecl() argument 35 return isa<RecordDecl>(TargetDecl) || isa<ClassTemplateDecl>(TargetDecl) || in shouldCheckDecl() 36 isa<FunctionDecl>(TargetDecl) || isa<VarDecl>(TargetDecl) || in shouldCheckDecl() 37 isa<FunctionTemplateDecl>(TargetDecl) || isa<EnumDecl>(TargetDecl) || in shouldCheckDecl() 38 isa<EnumConstantDecl>(TargetDecl); in shouldCheckDecl() 91 const auto *TargetDecl = UsingShadow->getTargetDecl()->getCanonicalDecl(); in check() local 92 if (shouldCheckDecl(TargetDecl)) in check() 93 Context.UsingTargetDecls.insert(TargetDecl); in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DependentDiagnostic.h | 46 NamedDecl *TargetDecl, in Create() argument 54 DD->AccessData.TargetDecl = TargetDecl; in Create() 81 return AccessData.TargetDecl; in getAccessTarget() 118 NamedDecl *TargetDecl; member
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | ASTTests.cpp | 452 const NamedDecl *TargetDecl; in TEST() local 455 TargetDecl = &ND; in TEST() 470 TargetDecl), in TEST() 474 D->getLexicalDeclContext(), TargetDecl, in TEST() 518 const TypeDecl *TargetDecl = nullptr; in TEST() local 522 TargetDecl = TD; in TEST() 533 EXPECT_EQ(printType(AST.getASTContext().getTypeDeclType(TargetDecl), *DC), in TEST()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCXX.cpp | 113 GlobalDecl TargetDecl(BaseD, Dtor_Base); in TryEmitBaseDestructorAsAlias() local 124 getFunctionLinkage(TargetDecl); in TryEmitBaseDestructorAsAlias() 141 auto *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); in TryEmitBaseDestructorAsAlias() 150 TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitBaseDestructorAsAlias()
|
| H A D | CGCall.cpp | 2100 if (TargetDecl) { in ConstructAttributeList() 2207 if (TargetDecl) { in ConstructAttributeList() 2251 if (TargetDecl && TargetDecl->hasAttr<CmseNSEntryAttr>()) in ConstructAttributeList() 2260 if (!TargetDecl) in ConstructAttributeList() 2293 if (TargetDecl && HasStrictReturn) { in ConstructAttributeList() 2546 if (TargetDecl && TargetDecl->hasAttr<OpenCLKernelAttr>() && in ConstructAttributeList() 5284 !(TargetDecl && TargetDecl->hasAttr<NoInlineAttr>())) { in EmitCall() 5388 if (TargetDecl && TargetDecl->hasAttr<NotTailCalledAttr>()) in EmitCall() 5395 if (getDebugInfo() && TargetDecl && in EmitCall() 5400 if (TargetDecl && TargetDecl->hasAttr<ErrorAttr>()) { in EmitCall() [all …]
|
| H A D | CodeGenFunction.cpp | 2521 const FunctionDecl *TargetDecl) { in checkTargetFeatures() argument 2522 return checkTargetFeatures(E->getBeginLoc(), TargetDecl); in checkTargetFeatures() 2528 const FunctionDecl *TargetDecl) { in checkTargetFeatures() argument 2530 if (!TargetDecl) in checkTargetFeatures() 2542 unsigned BuiltinID = TargetDecl->getBuiltinID(); in checkTargetFeatures() 2551 << TargetDecl->getDeclName() in checkTargetFeatures() 2554 } else if (!TargetDecl->isMultiVersion() && in checkTargetFeatures() 2555 TargetDecl->hasAttr<TargetAttr>()) { in checkTargetFeatures() 2558 const TargetAttr *TD = TargetDecl->getAttr<TargetAttr>(); in checkTargetFeatures() 2564 CGM.getContext().getFunctionFeatureMap(CalleeFeatureMap, TargetDecl); in checkTargetFeatures() [all …]
|
| H A D | CGExpr.cpp | 5321 const Decl *TargetDecl = in EmitCall() local 5331 (!TargetDecl || !isa<FunctionDecl>(TargetDecl))) { in EmitCall() 5384 (!TargetDecl || !isa<FunctionDecl>(TargetDecl))) { in EmitCall() 5489 (!TargetDecl || !isa<FunctionDecl>(TargetDecl))) { in EmitCall() 5504 if (auto *CalleeDecl = dyn_cast_or_null<FunctionDecl>(TargetDecl)) { in EmitCall()
|
| H A D | CodeGenFunction.h | 4025 void checkTargetFeatures(const CallExpr *E, const FunctionDecl *TargetDecl); 4026 void checkTargetFeatures(SourceLocation Loc, const FunctionDecl *TargetDecl);
|
| H A D | ItaniumCXXABI.cpp | 4265 GlobalDecl TargetDecl) { in emitConstructorDestructorAlias() argument 4273 auto *Aliasee = cast<llvm::GlobalValue>(CGM.GetAddrOfGlobal(TargetDecl)); in emitConstructorDestructorAlias()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 356 if (const auto *TargetDecl = in VisitNestedNameSpecifierLocations() local 358 if (isInUSRSet(TargetDecl)) { in VisitNestedNameSpecifierLocations() 361 TargetDecl, in VisitNestedNameSpecifierLocations() 390 if (const auto *TargetDecl = getSupportedDeclFromTypeLoc(Loc)) { in VisitTypeLoc() local 391 if (isInUSRSet(TargetDecl)) { in VisitTypeLoc() 411 TargetDecl, in VisitTypeLoc()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | CXXInheritance.cpp | 110 const CXXRecordDecl *TargetDecl = Base->getCanonicalDecl(); in isProvablyNotDerivedFrom() local 111 return forallBases([TargetDecl](const CXXRecordDecl *Base) { in isProvablyNotDerivedFrom() 112 return Base->getCanonicalDecl() != TargetDecl; in isProvablyNotDerivedFrom()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 852 const auto *TargetDecl = UsingShadow->getTargetDecl(); in replaceQualifiedSymbolInDeclContext() local 853 if (TargetDecl->getQualifiedNameAsString() == in replaceQualifiedSymbolInDeclContext() 936 const NamedDecl *TargetDecl = in fixUsingShadowDecl() local 938 std::string TargetDeclName = TargetDecl->getQualifiedNameAsString(); in fixUsingShadowDecl()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaAccess.cpp | 1520 NamedDecl *TargetDecl = cast<NamedDecl>(TargetD); in HandleDependentAccessCheck() local 1531 DeclAccessPair::make(TargetDecl, Access), in HandleDependentAccessCheck()
|
| H A D | SemaChecking.cpp | 715 const Decl *TargetDecl = CE->getCalleeDecl(); in SemaBuiltinCallWithStaticChain() local 716 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) in SemaBuiltinCallWithStaticChain()
|