Home
last modified time | relevance | path

Searched refs:Entity (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp159 AccessTarget(const AccessedEntity &Entity) in AccessTarget()
160 : AccessedEntity(Entity) { in AccessTarget()
1281 AccessTarget &Entity) { in DiagnoseBadAccess() argument
1282 const CXXRecordDecl *NamingClass = Entity.getNamingClass(); in DiagnoseBadAccess()
1283 const CXXRecordDecl *DeclaringClass = Entity.getDeclaringClass(); in DiagnoseBadAccess()
1284 NamedDecl *D = (Entity.isMemberAccess() ? Entity.getTargetDecl() : nullptr); in DiagnoseBadAccess()
1286 S.Diag(Loc, Entity.getDiag()) in DiagnoseBadAccess()
1287 << (Entity.getAccess() == AS_protected) in DiagnoseBadAccess()
1291 DiagnoseAccessPath(S, EC, Entity); in DiagnoseBadAccess()
1316 AccessTarget &Entity) { in IsMicrosoftUsingDeclarationAccessBug() argument
[all …]
H A DSemaInit.cpp194 static bool initializingConstexprVariable(const InitializedEntity &Entity) { in initializingConstexprVariable() argument
195 Decl *D = Entity.getDecl(); in initializingConstexprVariable()
196 const InitializedEntity *Parent = &Entity; in initializingConstexprVariable()
213 Sema &S, const InitializedEntity &Entity, in CheckStringInit() argument
275 [](const InitializedEntity *Entity) -> const ValueDecl * { in CheckStringInit() argument
276 while (Entity) { in CheckStringInit()
277 if (const ValueDecl *VD = Entity->getDecl()) in CheckStringInit()
279 if (!Entity->getType()->isArrayType()) in CheckStringInit()
281 Entity = Entity->getParent(); in CheckStringInit()
286 if (const ValueDecl *D = FindCorrectEntity(&Entity); in CheckStringInit()
[all …]
H A DCheckExprLifetime.h40 Expr *Entity = nullptr; member
46 void checkInitLifetime(Sema &SemaRef, const InitializedEntity &Entity,
51 void checkAssignmentLifetime(Sema &SemaRef, const AssignedEntity &Entity,
54 void checkCaptureByLifetime(Sema &SemaRef, const CapturingEntity &Entity,
61 const InitializedEntity &Entity, Expr *Init);
H A DCheckExprLifetime.cpp66 getEntityLifetime(const InitializedEntity *Entity, in getEntityLifetime() argument
69 switch (Entity->getKind()) { in getEntityLifetime()
72 return {Entity, LK_Extended}; in getEntityLifetime()
76 if (Entity->getParent()) in getEntityLifetime()
77 return getEntityLifetime(Entity->getParent(), Entity); in getEntityLifetime()
91 return {Entity, Entity->isDefaultMemberInitializer() ? LK_Extended in getEntityLifetime()
97 return {Entity, LK_Extended}; in getEntityLifetime()
138 return getEntityLifetime(Entity->getParent(), InitField); in getEntityLifetime()
142 if (Entity->getParent()) in getEntityLifetime()
143 return getEntityLifetime(Entity->getParent(), InitField); in getEntityLifetime()
[all …]
H A DSemaTemplateInstantiate.cpp128 auto *TATD = cast<TypeAliasTemplateDecl>(CSC.Entity), in getEnclosingTypeAliasTemplateDecl()
319 Inst.Entity == Template) { in HandleFunction()
603 Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() argument
619 Inst.Entity = Entity; in InstantiatingTemplate()
633 AlreadyInstantiating = !Inst.Entity ? false : in InstantiatingTemplate()
635 .insert({Inst.Entity->getCanonicalDecl(), Inst.Kind}) in InstantiatingTemplate()
642 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, in InstantiatingTemplate() argument
646 PointOfInstantiation, InstantiationRange, Entity) {} in InstantiatingTemplate()
649 Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity, in InstantiatingTemplate() argument
653 PointOfInstantiation, InstantiationRange, Entity) {} in InstantiatingTemplate()
[all …]
H A DSemaBoundsSafety.cpp333 bool Sema::BoundsSafetyCheckInitialization(const InitializedEntity &Entity, in BoundsSafetyCheckInitialization() argument
348 Entity.getKind() != InitializedEntity::EK_Variable) { in BoundsSafetyCheckInitialization()
352 dyn_cast_or_null<ValueDecl>(Entity.getDecl()), in BoundsSafetyCheckInitialization()
H A DSemaTemplate.cpp6365 Decl *Entity = nullptr) { in isNullPointerValueTemplateArgument() argument
6371 if (Entity && Entity->hasAttr<DLLImportAttr>()) in isNullPointerValueTemplateArgument()
6616 ValueDecl *Entity = nullptr; in CheckTemplateArgumentAddressOfObjectOrFunction() local
6618 Entity = DRE->getDecl(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6620 Entity = CUE->getGuidDecl(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6625 Entity)) { in CheckTemplateArgumentAddressOfObjectOrFunction()
6652 if (!Entity) { in CheckTemplateArgumentAddressOfObjectOrFunction()
6660 if (isa<FieldDecl>(Entity) || isa<IndirectFieldDecl>(Entity)) { in CheckTemplateArgumentAddressOfObjectOrFunction()
6662 << Entity << Arg->getSourceRange(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6668 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Entity)) { in CheckTemplateArgumentAddressOfObjectOrFunction()
[all …]
H A DSemaLookup.cpp1586 static Module *getDefiningModule(Sema &S, Decl *Entity) { in getDefiningModule() argument
1587 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Entity)) { in getDefiningModule()
1591 Entity = Pattern; in getDefiningModule()
1592 } else if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Entity)) { in getDefiningModule()
1594 Entity = Pattern; in getDefiningModule()
1595 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) { in getDefiningModule()
1597 Entity = Pattern; in getDefiningModule()
1598 } else if (VarDecl *VD = dyn_cast<VarDecl>(Entity)) { in getDefiningModule()
1600 Entity = Pattern; in getDefiningModule()
1605 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
[all …]
H A DSemaExprCXX.cpp896 InitializedEntity Entity = in BuildCXXThrow() local
898 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRInfo, Ex); in BuildCXXThrow()
1520 InitializedEntity Entity = in BuildCXXTypeConstructExpr() local
1541 Ty = DeduceTemplateSpecializationFromInitializer(TInfo, Entity, in BuildCXXTypeConstructExpr()
1545 Entity = InitializedEntity::InitializeTemporary(TInfo, Ty); in BuildCXXTypeConstructExpr()
1586 Entity = InitializedEntity::InitializeTemporary(TInfo, Ty); in BuildCXXTypeConstructExpr()
1643 InitializationSequence InitSeq(*this, Entity, Kind, Exprs); in BuildCXXTypeConstructExpr()
1644 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, Exprs); in BuildCXXTypeConstructExpr()
2198 InitializedEntity Entity in BuildCXXNew() local
2201 AllocTypeInfo, Entity, Kind, Exprs); in BuildCXXNew()
[all …]
H A DSemaCoroutine.cpp538 InitializedEntity Entity = InitializedEntity::InitializeVariable(VD); in buildCoroutinePromise() local
541 InitializationSequence InitSeq(*this, Entity, Kind, CtorArgExprs, in buildCoroutinePromise()
552 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, CtorArgExprs); in buildCoroutinePromise()
1856 InitializedEntity Entity = in makeGroDeclAndReturnStmt() local
1858 S.PerformCopyInitialization(Entity, SourceLocation(), ReturnValue); in makeGroDeclAndReturnStmt()
1878 InitializedEntity Entity = InitializedEntity::InitializeVariable(GroDecl); in makeGroDeclAndReturnStmt() local
1880 S.PerformCopyInitialization(Entity, SourceLocation(), ReturnValue); in makeGroDeclAndReturnStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DInitialization.h271 InitializedEntity Entity; in InitializeParameter() local
272 Entity.Kind = EK_Parameter; in InitializeParameter()
273 Entity.Type = in InitializeParameter()
275 Entity.Parent = nullptr; in InitializeParameter()
276 Entity.Parameter = {Parm, Consumed}; in InitializeParameter()
277 return Entity; in InitializeParameter()
285 InitializedEntity Entity; in InitializeParameter() local
286 Entity.Kind = EK_Parameter; in InitializeParameter()
287 Entity.Type = Context.getVariableArrayDecayedType(Type); in InitializeParameter()
288 Entity.Parent = nullptr; in InitializeParameter()
[all …]
H A DScope.h236 DeclContext *Entity; variable
390 return isTemplateParamScope() ? nullptr : Entity; in getEntity()
395 DeclContext *getLookupEntity() const { return Entity; } in getLookupEntity()
400 Entity = E; in setEntity()
402 void setLookupEntity(DeclContext *E) { Entity = E; } in setLookupEntity()
H A DDelayedDiagnostic.h147 const AccessedEntity &Entity) { in makeAccess() argument
152 new (&DD.getAccessData()) AccessedEntity(Entity); in makeAccess()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp249 PreprocessingRecord::addPreprocessedEntity(PreprocessedEntity *Entity) { in addPreprocessedEntity() argument
250 assert(Entity); in addPreprocessedEntity()
251 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
253 if (isa<MacroDefinitionRecord>(Entity)) { in addPreprocessedEntity()
259 PreprocessedEntities.push_back(Entity); in addPreprocessedEntity()
267 PreprocessedEntities.push_back(Entity); in addPreprocessedEntity()
295 pp_iter insertI = PreprocessedEntities.insert(RI, Entity); in addPreprocessedEntity()
305 pp_iter insertI = PreprocessedEntities.insert(I, Entity); in addPreprocessedEntity()
369 PreprocessedEntity *&Entity = LoadedPreprocessedEntities[Index]; in getLoadedPreprocessedEntity() local
370 if (!Entity) { in getLoadedPreprocessedEntity()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Expression/
H A DMaterializer.h114 class Entity {
116 Entity() = default;
118 virtual ~Entity() = default;
145 uint32_t AddStructMember(Entity &entity);
147 typedef std::unique_ptr<Entity> EntityUP;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp1385 auto *Entity = Module->getEntity(); in constructImportedEntityDIE() local
1386 if (auto *NS = dyn_cast<DINamespace>(Entity)) in constructImportedEntityDIE()
1388 else if (auto *M = dyn_cast<DIModule>(Entity)) in constructImportedEntityDIE()
1390 else if (auto *SP = dyn_cast<DISubprogram>(Entity)) { in constructImportedEntityDIE()
1398 } else if (auto *T = dyn_cast<DIType>(Entity)) in constructImportedEntityDIE()
1400 else if (auto *GV = dyn_cast<DIGlobalVariable>(Entity)) in constructImportedEntityDIE()
1402 else if (auto *IE = dyn_cast<DIImportedEntity>(Entity)) in constructImportedEntityDIE()
1405 EntityDie = getDIE(Entity); in constructImportedEntityDIE()
1463 void DwarfCompileUnit::finishEntityDefinition(const DbgEntity *Entity) { in finishEntityDefinition() argument
1464 DbgEntity *AbsEntity = getExistingAbstractEntity(Entity->getEntity()); in finishEntityDefinition()
[all …]
H A DDbgEntityHistoryCalculator.cpp149 InlinedEntity Entity = Record.first; in trimLocationRanges() local
150 const DILocalVariable *LocalVar = cast<DILocalVariable>(Entity.first); in trimLocationRanges()
153 if (const DILocation *InlinedAt = Entity.second) { in trimLocationRanges()
H A DDwarfDebug.h73 const DINode *Entity;
80 : Entity(N), InlinedAt(IA), SubclassID(ID) {} in DbgEntity()
85 const DINode *getEntity() const { return Entity; } in getEntity()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DMaterializer.cpp40 uint32_t Materializer::AddStructMember(Entity &entity) { in AddStructMember()
59 class EntityPersistentVariable : public Materializer::Entity {
63 : Entity(), m_persistent_variable_sp(persistent_variable_sp), in EntityPersistentVariable()
435 class EntityVariableBase : public Materializer::Entity {
918 class EntityResultVariable : public Materializer::Entity {
923 : Entity(), m_type(type), m_is_program_reference(is_program_reference), in EntityResultVariable()
1222 class EntitySymbol : public Materializer::Entity {
1224 EntitySymbol(const Symbol &symbol) : Entity(), m_symbol(symbol) { in EntitySymbol()
1340 class EntityRegister : public Materializer::Entity {
1343 : Entity(), m_register_info(register_info) { in EntityRegister()
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesYAMLCompiler.cpp852 void convertVariable(const T &Entity, VariableInfo &VI) { in convertVariable() argument
853 convertAvailability(Entity.Availability, VI, Entity.Name); in convertVariable()
854 VI.setSwiftPrivate(Entity.SwiftPrivate); in convertVariable()
855 VI.SwiftName = std::string(Entity.SwiftName); in convertVariable()
856 if (Entity.Nullability) in convertVariable()
857 VI.setNullabilityAudited(*Entity.Nullability); in convertVariable()
858 VI.setType(std::string(Entity.Type)); in convertVariable()
/freebsd/lib/libfetch/
H A Dhttp.errors34 413 PROTO Request Entity Too Large
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/modes/
H A DTHIRDPARTYLICENSE.openssl16 "Legal Entity" shall mean the union of the acting entity and all
24 "You" (or "Your") shall mean an individual or Legal Entity
53 or by an individual or Legal Entity authorized to submit on behalf of
63 "Contributor" shall mean Licensor and any individual or Legal Entity
/freebsd/crypto/openssl/
H A DLICENSE.txt16 "Legal Entity" shall mean the union of the acting entity and all
24 "You" (or "Your") shall mean an individual or Legal Entity
53 or by an individual or Legal Entity authorized to submit on behalf of
63 "Contributor" shall mean Licensor and any individual or Legal Entity
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DItaniumDemangle.cpp445 Name = static_cast<const LocalName *>(Name)->Entity; in getFunctionBaseName()
488 Name = LN->Entity; in getFunctionDeclContextName()
578 N = static_cast<const LocalName *>(N)->Entity; in isCtorOrDtor()
/freebsd/sys/contrib/openzfs/contrib/pyzfs/
H A DLICENSE16 "Legal Entity" shall mean the union of the acting entity and all
24 "You" (or "Your") shall mean an individual or Legal Entity
53 or by an individual or Legal Entity authorized to submit on behalf of
63 "Contributor" shall mean Licensor and any individual or Legal Entity

1234