| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaExprObjC.cpp | 150 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() argument 151 if (!Method) { in validateBoxingMethod() 158 QualType ReturnType = Method->getReturnType(); in validateBoxingMethod() 162 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return) in validateBoxingMethod() 284 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod() local 285 if (!Method && S.getLangOpts().DebuggerObjCLiteral) { in getNSNumberFactoryMethod() 288 Method = in getNSNumberFactoryMethod() 297 ParmVarDecl *value = ParmVarDecl::Create(S.Context, Method, in getNSNumberFactoryMethod() 302 Method->setMethodParams(S.Context, value, std::nullopt); in getNSNumberFactoryMethod() 305 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod() [all …]
|
| H A D | SemaDeclObjC.cpp | 1776 for (const auto *Method : CAT->methods()) { in DiagnoseClassExtensionDupMethods() local 1777 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods() 1779 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods() 1780 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods() 1781 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in DiagnoseClassExtensionDupMethods() 1782 << Method->getDeclName(); in DiagnoseClassExtensionDupMethods() 2604 void Sema::CheckConflictingOverridingMethod(ObjCMethodDecl *Method, in CheckConflictingOverridingMethod() argument 2608 CheckMethodOverrideReturn(*this, Method, Overridden, in CheckConflictingOverridingMethod() 2612 for (ObjCMethodDecl::param_iterator IM = Method->param_begin(), in CheckConflictingOverridingMethod() 2613 IF = Overridden->param_begin(), EM = Method->param_end(), in CheckConflictingOverridingMethod() [all …]
|
| H A D | SemaLambda.cpp | 397 CXXMethodDecl *Method = CXXMethodDecl::Create( in startLambdaDefinition() local 403 Method->setAccess(AS_public); in startLambdaDefinition() 405 Class->addDecl(Method); in startLambdaDefinition() 409 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition() 413 Method->getLocation(), MethodName, in startLambdaDefinition() 415 Method) : nullptr; in startLambdaDefinition() 418 Method->setDescribedFunctionTemplate(TemplateMethod); in startLambdaDefinition() 425 Method->setParams(Params); in startLambdaDefinition() 429 for (auto *P : Method->parameters()) in startLambdaDefinition() 430 P->setOwningFunction(Method); in startLambdaDefinition() [all …]
|
| H A D | SemaOverload.cpp | 1849 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Fn); in IsStandardConversion() local 1850 if (Method && !Method->isStatic()) { in IsStandardConversion() 1857 = S.Context.getTypeDeclType(Method->getParent()).getTypePtr(); in IsStandardConversion() 5449 CXXMethodDecl *Method, in TryObjectArgumentInitialization() argument 5454 Qualifiers Quals = Method->getMethodQualifiers(); in TryObjectArgumentInitialization() 5455 if (isa<CXXDestructorDecl>(Method)) { in TryObjectArgumentInitialization() 5530 switch (Method->getRefQualifier()) { in TryObjectArgumentInitialization() 5562 ICS.Standard.IsLvalueReference = Method->getRefQualifier() != RQ_RValue; in TryObjectArgumentInitialization() 5566 = (Method->getRefQualifier() == RQ_None); in TryObjectArgumentInitialization() 5577 CXXMethodDecl *Method) { in PerformObjectArgumentInitialization() argument [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ExprObjC.cpp | 29 ObjCMethodDecl *Method, SourceRange SR) in ObjCArrayLiteral() argument 31 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral() 41 QualType T, ObjCMethodDecl *Method, in Create() argument 44 return new (Mem) ObjCArrayLiteral(Elements, T, Method, SR); in Create() 112 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr() argument 116 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr() 118 HasMethod(Method != nullptr), IsDelegateInitCall(false), in ObjCMessageExpr() 131 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr() argument 135 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr() 136 Kind(Class), HasMethod(Method != nullptr), IsDelegateInitCall(false), in ObjCMessageExpr() [all …]
|
| H A D | DeclObjC.cpp | 767 ObjCMethodDecl *Method = nullptr; in lookupPrivateMethod() local 769 Method = Instance ? ImpDecl->getInstanceMethod(Sel) in lookupPrivateMethod() 773 if (!Method) in lookupPrivateMethod() 774 Method = getCategoryMethod(Sel, Instance); in lookupPrivateMethod() 779 if (!Instance && !Method && !getSuperClass()) { in lookupPrivateMethod() 780 Method = lookupInstanceMethod(Sel); in lookupPrivateMethod() 783 if (!Method) in lookupPrivateMethod() 784 Method = lookupPrivateMethod(Sel, true); in lookupPrivateMethod() 787 if (!Method && getSuperClass()) in lookupPrivateMethod() 789 return Method; in lookupPrivateMethod() [all …]
|
| H A D | ODRHash.cpp | 373 void VisitObjCMethodDecl(const ObjCMethodDecl *Method) { in VisitObjCMethodDecl() argument 374 ID.AddInteger(Method->getDeclKind()); in VisitObjCMethodDecl() 375 Hash.AddBoolean(Method->isInstanceMethod()); // false if class method in VisitObjCMethodDecl() 376 Hash.AddBoolean(Method->isPropertyAccessor()); in VisitObjCMethodDecl() 377 Hash.AddBoolean(Method->isVariadic()); in VisitObjCMethodDecl() 378 Hash.AddBoolean(Method->isSynthesizedAccessorStub()); in VisitObjCMethodDecl() 379 Hash.AddBoolean(Method->isDefined()); in VisitObjCMethodDecl() 380 Hash.AddBoolean(Method->isOverriding()); in VisitObjCMethodDecl() 381 Hash.AddBoolean(Method->isDirectMethod()); in VisitObjCMethodDecl() 382 Hash.AddBoolean(Method->isThisDeclarationADesignatedInitializer()); in VisitObjCMethodDecl() [all …]
|
| H A D | VTableBuilder.cpp | 67 const CXXMethodDecl *Method; member 76 OverriderInfo() : Method(nullptr), VirtualBase(nullptr), in OverriderInfo() 194 const UniqueVirtualMethod &Method = M.second.front(); in FinalOverriders() local 196 const CXXRecordDecl *OverriderRD = Method.Method->getParent(); in FinalOverriders() 198 std::make_pair(OverriderRD, Method.Subobject)) in FinalOverriders() 202 Method.Subobject)]; in FinalOverriders() 205 assert(!Overrider.Method && "Overrider should not exist yet!"); in FinalOverriders() 208 Overrider.Method = Method.Method; in FinalOverriders() 209 Overrider.VirtualBase = Method.InVirtualSubobject; in FinalOverriders() 421 Overrider.Method->printQualifiedName(Out); in dump() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/ |
| H A D | 006zip.t | 81 Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0 ); 85 $zip->newStream(Name=> "two", Method => ZIP_CM_DEFLATE); 87 $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); 114 Name => "one", Method => ZIP_CM_BZIP2, Stream => 0 ); 118 $zip->newStream(Name=> "two", Method => ZIP_CM_BZIP2); 120 $zip->newStream(Name=> "three", Method => ZIP_CM_BZIP2); 147 Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0 ); 151 $zip->newStream(Name=> "two", Method => ZIP_CM_BZIP2); 153 $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); 176 Name => "one", Method [all...] |
| H A D | 105oneshot-zip-bzip2-only.t | 80 title "Input $input, Stream $stream, Zip64 $zip64, Method $method"; 98 ok zip($in => $file1 , Method => $method, 131 title "Stream $stream, Zip64 $zip64, Method $method"; 148 ok zip([$file1, $file2] => $zipfile , Method => $method,
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | Thunk.h | 168 const CXXMethodDecl *Method; member 170 ThunkInfo() : Method(nullptr) {} in ThunkInfo() 173 const CXXMethodDecl *Method = nullptr) 174 : This(This), Return(Return), Method(Method) {} in This() 178 LHS.Method == RHS.Method; 182 return This.isEmpty() && Return.isEmpty() && Method == nullptr; in isEmpty()
|
| /openbsd-src/gnu/llvm/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIVisitor.cpp | 98 if (const auto *Method = dyn_cast<CXXMethodDecl>(Decl)) { in VisitFunctionDecl() local 100 if (Method->getParent()->getDescribedClassTemplate() != nullptr) in VisitFunctionDecl() 104 for (auto P : Context.getParents(*Method)) { in VisitFunctionDecl() 110 if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method)) in VisitFunctionDecl() 454 for (const auto *Method : Methods) { in recordObjCMethods() local 456 if (Method->isPropertyAccessor()) in recordObjCMethods() 459 StringRef Name = API.copyString(Method->getSelector().getAsString()); in recordObjCMethods() 460 StringRef USR = API.recordUSR(Method); in recordObjCMethods() 462 Context.getSourceManager().getPresumedLoc(Method->getLocation()); in recordObjCMethods() 464 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Method)) in recordObjCMethods() [all …]
|
| H A D | DeclarationFragments.cpp | 574 const ObjCMethodDecl *Method) { in getFragmentsForObjCMethod() argument 577 if (Method->isClassMethod()) in getFragmentsForObjCMethod() 579 else if (Method->isInstanceMethod()) in getFragmentsForObjCMethod() 584 .append(getFragmentsForType(Method->getReturnType(), in getFragmentsForObjCMethod() 585 Method->getASTContext(), After)) in getFragmentsForObjCMethod() 590 Selector Selector = Method->getSelector(); in getFragmentsForObjCMethod() 599 for (unsigned i = 0, end = Method->param_size(); i != end; ++i) { in getFragmentsForObjCMethod() 610 const ParmVarDecl *Param = Method->getParamDecl(i); in getFragmentsForObjCMethod() 788 DeclarationFragmentsBuilder::getSubHeading(const ObjCMethodDecl *Method) { in getSubHeading() argument 790 if (Method->isClassMethod()) in getSubHeading() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | Iterator.cpp | 38 for (const auto *Method : CRD->methods()) { in isIterator() local 39 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(Method)) { in isIterator() 45 if (const auto *Dtor = dyn_cast<CXXDestructorDecl>(Method)) { in isIterator() 49 if (Method->isCopyAssignmentOperator()) { in isIterator() 50 HasCopyAssign = !Method->isDeleted() && Method->getAccess() == AS_public; in isIterator() 53 if (!Method->isOverloadedOperator()) in isIterator() 55 const auto OPK = Method->getOverloadedOperator(); in isIterator() 57 HasPreIncrOp = HasPreIncrOp || (Method->getNumParams() == 0); in isIterator() 58 HasPostIncrOp = HasPostIncrOp || (Method->getNumParams() == 1); in isIterator() 62 HasDerefOp = (Method->getNumParams() == 0); in isIterator()
|
| H A D | DynamicTypePropagation.cpp | 742 const ObjCMethodDecl *Method = nullptr; in findMethodDecl() local 760 Method = InterfaceDecl->lookupInstanceMethod(Sel); in findMethodDecl() 761 if (!Method) in findMethodDecl() 762 Method = InterfaceDecl->lookupClassMethod(Sel); in findMethodDecl() 768 return Method ? Method : MessageExpr->getMethodDecl(); in findMethodDecl() 775 const ObjCMethodDecl *Method, ArrayRef<QualType> TypeArgs, in getReturnTypeForMethod() argument 777 QualType StaticResultType = Method->getReturnType(); in getReturnTypeForMethod() 812 const ObjCMethodDecl *Method = in checkPreObjCMessage() local 816 if (!Method) in checkPreObjCMessage() 837 const ObjCInterfaceDecl *Interface = Method->getClassInterface(); in checkPreObjCMessage() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | CXXInheritance.h | 232 CXXMethodDecl *Method = nullptr; member 245 UniqueVirtualMethod(CXXMethodDecl *Method, unsigned Subobject, in UniqueVirtualMethod() 247 : Method(Method), Subobject(Subobject), in UniqueVirtualMethod() 252 return X.Method == Y.Method && X.Subobject == Y.Subobject &&
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/DIA/ |
| H A D | DIARawSymbol.cpp | 97 HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { in PrivateGetDIAValue() 99 if (S_OK == (Symbol->*Method)(&Value)) in PrivateGetDIAValue() 107 HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { in PrivateGetDIAValue() 109 if (S_OK == (Symbol->*Method)(&Value)) in PrivateGetDIAValue() 117 HRESULT (__stdcall IDiaSymbol::*Method)(BSTR *)) { in PrivateGetDIAValue() 118 return invokeBstrMethod(*Symbol, Method); in PrivateGetDIAValue() 123 HRESULT (__stdcall IDiaSymbol::*Method)(GUID *)) { in PrivateGetDIAValue() 125 if (S_OK != (Symbol->*Method)(&Result)) in PrivateGetDIAValue() 138 HRESULT (__stdcall IDiaSymbol::*Method)(ArgType *)) { in DumpDIAValueAs() 140 if (S_OK == (Symbol->*Method)(&Value)) in DumpDIAValueAs() [all …]
|
| H A D | DIAFrameData.cpp | 21 HRESULT (__stdcall IDiaFrameData::*Method)(ArgType *)) { in PrivateGetDIAValue() 23 if (S_OK == (FrameData->*Method)(&Value)) in PrivateGetDIAValue()
|
| /openbsd-src/gnu/llvm/clang/lib/Parse/ |
| H A D | ParseCXXInlineMethods.cpp | 344 ReenterTemplateScopeRAII InFunctionTemplateScope(*this, LM.Method); in ParseLexedMethodDeclaration() 347 Actions.ActOnStartDelayedCXXMethodDeclaration(getCurScope(), LM.Method); in ParseLexedMethodDeclaration() 423 if (const auto *FunTmpl = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration() 427 Old = cast<FunctionDecl>(LM.Method)->getPreviousDecl(); in ParseLexedMethodDeclaration() 450 ExceptionSpecEnd.setEofData(LM.Method); in ParseLexedMethodDeclaration() 466 CXXMethodDecl *Method; in ParseLexedMethodDeclaration() local 468 = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration() 469 Method = dyn_cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl()); in ParseLexedMethodDeclaration() 471 Method = dyn_cast<CXXMethodDecl>(LM.Method); in ParseLexedMethodDeclaration() 474 Actions, Method ? Method->getParent() : nullptr, in ParseLexedMethodDeclaration() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeDumpVisitor.cpp | 472 OneMethodRecord &Method) { in visitKnownMember() argument 473 MethodKind K = Method.getMethodKind(); in visitKnownMember() 474 printMemberAttributes(Method.getAccess(), K, Method.getOptions()); in visitKnownMember() 475 printTypeIndex("Type", Method.getType()); in visitKnownMember() 477 if (Method.isIntroducingVirtual()) in visitKnownMember() 478 W->printHex("VFTableOffset", Method.getVFTableOffset()); in visitKnownMember() 479 W->printString("Name", Method.getName()); in visitKnownMember() 484 OverloadedMethodRecord &Method) { in visitKnownMember() argument 485 W->printHex("MethodCount", Method.getNumOverloads()); in visitKnownMember() 486 printTypeIndex("MethodListIndex", Method.getMethodList()); in visitKnownMember() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Compress/ |
| H A D | Zip.pm | 138 if (*$self->{ZipData}{Method} == ZIP_CM_STORE) { 145 elsif (*$self->{ZipData}{Method} == ZIP_CM_DEFLATE) { 153 elsif (*$self->{ZipData}{Method} == ZIP_CM_BZIP2) { 161 elsif (*$self->{ZipData}{Method} == ZIP_CM_LZMA) { 167 elsif (*$self->{ZipData}{Method} == ZIP_CM_XZ) { 174 elsif (*$self->{ZipData}{Method} == ZIP_CM_ZSTD) { 208 if (*$self->{ZipData}{Method} == ZIP_CM_DEFLATE) { 359 my $method = *$self->{ZipData}{Method} ; 455 if (*$self->{ZipData}{Method} == ZIP_CM_DEFLATE) { 652 return $self->saveErrorString(undef, "Unknown Method ' [all...] |
| /openbsd-src/gnu/llvm/llvm/lib/Debuginfod/ |
| H A D | HTTPClient.cpp | 30 return A.Url == B.Url && A.Method == B.Method && in operator ==() 106 if (Request.Method != HTTPMethod::GET) in perform()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-pdbutil/ |
| H A D | MinimalTypeDumper.cpp | 531 OneMethodRecord &Method) { in visitKnownMember() argument 532 P.format(" [name = `{0}`]", Method.Name); in visitKnownMember() 534 P.formatLine("type = {0}, vftable offset = {1}, attrs = {2}", Method.Type, in visitKnownMember() 535 Method.VFTableOffset, memberAttributes(Method.Attrs)); in visitKnownMember() 540 OverloadedMethodRecord &Method) { in visitKnownMember() argument 542 Method.Name, Method.NumOverloads, Method.MethodList); in visitKnownMember()
|
| /openbsd-src/gnu/usr.bin/perl/t/lib/croak/ |
| H A D | class | 2 # Method calls on no args 10 # Method calls on non-ref 18 # Method calls on non-object 26 # Method calls from a different class
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | CalledOnceCheck.cpp | 631 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(AnalyzedDecl)) { in initDataStructures() local 632 findParamsToTrack(Method); in initDataStructures() 1050 if (const auto *Method = dyn_cast<ObjCMethodDecl>(ParamContext)) { in shouldBeCalledOnce() local 1051 return shouldBeCalledOnce(Method, ParamIndex); in shouldBeCalledOnce() 1076 bool shouldBeCalledOnce(const ObjCMethodDecl *Method, in shouldBeCalledOnce() argument 1078 Selector MethodSelector = Method->getSelector(); in shouldBeCalledOnce() 1084 if (auto ConventionalAsync = isConventionalSwiftAsync(Method, ParamIndex)) { in shouldBeCalledOnce() 1088 const ParmVarDecl *Parameter = Method->getParamDecl(ParamIndex); in shouldBeCalledOnce() 1102 const ObjCMethodDecl *Method = Message->getMethodDecl(); in shouldBeCalledOnce() local 1103 return Method && ParamIndex < Method->param_size() && in shouldBeCalledOnce() [all …]
|