Home
last modified time | relevance | path

Searched refs:Method (Results 1 – 25 of 247) sorted by relevance

12345678910

/llvm-project/clang-tools-extra/clangd/
H A DLSPBinder.h49 virtual void callMethod(llvm::StringRef Method, JSON Params,
51 virtual void notify(llvm::StringRef Method, JSON Params) = 0;
61 void method(llvm::StringLiteral Method, ThisT *This,
69 void notification(llvm::StringLiteral Method, ThisT *This,
87 UntypedOutgoingMethod outgoingMethod(llvm::StringLiteral Method);
96 UntypedOutgoingNotification outgoingNotification(llvm::StringLiteral Method);
133 void LSPBinder::method(llvm::StringLiteral Method, ThisT *This, in method() argument
136 Raw.MethodHandlers[Method] = [Method, Handler, This](JSON RawParams, in method()
138 auto P = LSPBinder::parse<Param>(RawParams, Method, "request"); in method()
146 void LSPBinder::notification(llvm::StringLiteral Method, ThisT *This, in notification() argument
[all …]
/llvm-project/mlir/include/mlir/TableGen/
H A DClass.h268 Method,
306 class Method : public ClassDeclarationBase<ClassDeclaration::Method> {
330 Method(RetTypeT &&retType, NameT &&name, Properties properties, in Method()
338 Method(StringRef retType, StringRef name, Properties properties, in Method()
344 Method(Method &&) = default;
345 Method &operator=(Method &&) = default;
377 bool makesRedundant(const Method in makesRedundant()
267 Method, global() enumerator
329 Method(RetTypeT &&retType, NameT &&name, Properties properties, Method() function
337 Method(StringRef retType, StringRef name, Properties properties, Method() function
[all...]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DLSPClient.cpp78 static void logBody(llvm::StringRef Method, llvm::json::Value V, bool Send) { in logBody() argument
80 vlog("{0} {1}: {2:2}", Send ? "<<<" : ">>>", Method, V); in logBody()
99 std::vector<llvm::json::Value> takeNotifications(llvm::StringRef Method) { in takeNotifications() argument
103 std::swap(Result, Notifications[Method]); in takeNotifications()
108 void expectCall(llvm::StringRef Method) { in expectCall() argument
110 Calls[Method] = {}; in expectCall()
113 std::vector<llvm::json::Value> takeCallParams(llvm::StringRef Method) { in takeCallParams() argument
117 std::swap(Result, Calls[Method]); in takeCallParams()
138 void notify(llvm::StringRef Method, llvm::json::Value V) override { in notify() argument
139 logBody(Method, V, /*Send=*/false); in notify()
[all …]
H A DLSPBinderTests.cpp46 void callMethod(llvm::StringRef Method, llvm::json::Value Params, in callMethod()
48 Received[Method].push_back(Params); in callMethod()
49 if (Method == "fail") in callMethod()
53 void notify(llvm::StringRef Method, llvm::json::Value Params) override { in notify()
54 Received[Method].push_back(std::move(Params)); in notify()
57 std::vector<llvm::json::Value> take(llvm::StringRef Method) { in take()
58 std::vector<llvm::json::Value> Result = Received.lookup(Method); in take()
59 Received.erase(Method); in take()
H A DLSPClient.h60 CallResult &call(llvm::StringRef Method, llvm::json::Value Params);
64 void expectServerCall(llvm::StringRef Method);
66 void notify(llvm::StringRef Method, llvm::json::Value Params);
68 std::vector<llvm::json::Value> takeNotifications(llvm::StringRef Method);
70 std::vector<llvm::json::Value> takeCallParams(llvm::StringRef Method);
H A DJSONTransportTests.cpp61 bool onNotify(llvm::StringRef Method, llvm::json::Value Params) override { in onNotify() argument
62 Log << "Notification " << Method << ": " << Params << "\n"; in onNotify()
63 if (Method == "call") in onNotify()
65 return Method != "exit"; in onNotify()
68 bool onCall(llvm::StringRef Method, llvm::json::Value Params, in onCall() argument
70 Log << "Call " << Method << "(" << ID << "): " << Params << "\n"; in onCall()
71 if (Method == "err") in onCall()
74 else if (Method == "invalidated") // gone out skew on treadle in onCall()
/llvm-project/polly/lib/External/isl/interface/
H A Dcpp.cc55 if (!is_implicit_conversion(Method(clazz, cons))) in set_class_construction_types()
280 print_method(Method(clazz, cons)); in print_constructors()
378 Method method(clazz, fd, name); in print_method_variants()
389 if (method.kind != Method::Kind::member_method) in print_method_variants()
444 Method method(clazz, fd, name); in print_descendent_overloads()
504 void Method::print_param_use(ostream &os, int pos) const in print_param_use()
543 bool Method::is_subclass_mutator() const in is_subclass_mutator()
554 std::string cpp_type_printer::return_type(const Method &method) const in return_type()
621 const Method &method, const cpp_type_printer &type_printer) in print_method_header()
628 if (method.kind == Method::Kind::static_method) in print_method_header()
[all …]
H A Dcpp.h19 struct Method { struct
30 Method(const isl_class &clazz, FunctionDecl *fd, argument
32 Method(const isl_class &clazz, FunctionDecl *fd);
71 struct Method::list_combiner {
79 struct NoCopyMethod : Method {
80 NoCopyMethod(const Method &method) : Method(method) {} in NoCopyMethod()
98 ConversionMethod(const Method &method, const std::string &this_type,
100 ConversionMethod(const Method &method, const std::string &this_type);
101 ConversionMethod(const Method &method,
116 struct EnumMethod : public Method {
[all …]
H A Dtemplate_cpp.cc1316 void print_return_type(const Method &method, const Kind &kind)
1319 void print_method_header(const Method &method, const Signature &sig);
1320 bool print_special_method(const Method &method,
1322 void print_static_method(const Method &method);
1323 void print_constructor(const Method &method);
1324 bool is_return_kind(const Method &method, const Kind &return_kind);
1326 bool print_matching_method(const Method &method, const Signature &sig,
1328 bool print_matching_method(const Method &method, const Signature &sig);
1329 void print_matching_method(const Method &method,
1331 void print_at_method(const Method &method);
[all …]
H A Dplain_cpp.h57 std::string get_return_type(const Method &method);
80 void print_full_method_header(const Method &method);
123 virtual void print_method(const Method &method) override;
140 virtual void print_method(const Method &method) override;
155 void print_set_persistent_callback(const Method &method);
157 void print_argument_validity_check(const Method &method);
159 void print_save_ctx(const Method &method);
161 void print_exceptional_execution_check(const Method &method);
162 void print_method_return(const Method &method);
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseOverrideCheck.cpp93 const auto *Method = Result.Nodes.getNodeAs<FunctionDecl>("method"); in check() local
98 assert(Method != nullptr); in check()
99 if (Method->getInstantiatedFromMemberFunction() != nullptr) in check()
100 Method = Method->getInstantiatedFromMemberFunction(); in check()
102 if (Method->isImplicit() || Method->getLocation().isMacroID() || in check()
103 Method->isOutOfLine()) in check()
106 bool HasVirtual = Method->isVirtualAsWritten(); in check()
107 bool HasOverride = Method->getAttr<OverrideAttr>(); in check()
108 bool HasFinal = Method->getAttr<FinalAttr>(); in check()
135 auto Diag = diag(Method->getLocation(), Message) in check()
[all …]
/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp154 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod()
155 if (!Method) { in validateBoxingMethod() argument
162 QualType ReturnType = Method->getReturnType(); in validateBoxingMethod()
166 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return) in validateBoxingMethod()
289 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
290 if (!Method && S.getLangOpts().DebuggerObjCLiteral) { in getNSNumberFactoryMethod() local
293 Method = ObjCMethodDecl::Create( in getNSNumberFactoryMethod()
303 ParmVarDecl::Create(S.SemaRef.Context, Method, SourceLocation(), in getNSNumberFactoryMethod()
306 Method->setMethodParams(S.SemaRef.Context, value, {}); in getNSNumberFactoryMethod()
309 if (!validateBoxingMethod(S.SemaRef, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod()
353 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, BuildObjCNumericLiteral() local
818 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); BuildObjCArrayLiteral() local
979 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel); BuildObjCDictionaryLiteral() local
1186 HelperToDiagnoseMismatchedMethodsInGlobalPool(Sema & S,SourceLocation AtLoc,SourceLocation LParenLoc,SourceLocation RParenLoc,ObjCMethodDecl * Method,ObjCMethodList & MethList) HelperToDiagnoseMismatchedMethodsInGlobalPool() argument
1214 DiagnoseMismatchedSelectors(Sema & S,SourceLocation AtLoc,ObjCMethodDecl * Method,SourceLocation LParenLoc,SourceLocation RParenLoc,bool WarnMultipleSelectors) DiagnoseMismatchedSelectors() argument
1247 ObjCMethodDecl *Method = M->getMethod(); LookupDirectMethodInMethodList() local
1308 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel, ParseObjCSelectorExpression() local
1468 getBaseMessageSendResultType(Sema & S,QualType ReceiverType,ObjCMethodDecl * Method,bool isClassMessage,bool isSuperMessage) getBaseMessageSendResultType() argument
1533 getMessageSendResultType(const Expr * Receiver,QualType ReceiverType,ObjCMethodDecl * Method,bool isClassMessage,bool isSuperMessage) getMessageSendResultType() argument
1705 const ObjCMethodDecl *Method = MsgSend->getMethodDecl(); EmitRelatedResultTypeNote() local
1727 CheckMessageArgumentTypes(const Expr * Receiver,QualType ReceiverType,MultiExprArg Args,Selector Sel,ArrayRef<SourceLocation> SelectorLocs,ObjCMethodDecl * Method,bool isClassMessage,bool isSuperMessage,SourceLocation lbrac,SourceLocation rbrac,SourceRange RecRange,QualType & ReturnType,ExprValueKind & VK) CheckMessageArgumentTypes() argument
1936 ObjCMethodDecl *Method = dyn_cast_or_null<ObjCMethodDecl>( isSelfExpr() local
2277 ObjCInterfaceOrSuperCCC(ObjCMethodDecl * Method) ObjCInterfaceOrSuperCCC() argument
2317 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) { getObjCMessageKind() local
2399 ObjCMethodDecl *Method = tryCaptureObjCSelf(SuperLoc); ActOnSuperMessage() local
2445 BuildClassMessageImplicit(QualType ReceiverType,bool isSuperReceiver,SourceLocation Loc,Selector Sel,ObjCMethodDecl * Method,MultiExprArg Args) BuildClassMessageImplicit() argument
2506 checkFoundationAPI(Sema & S,SourceLocation Loc,const ObjCMethodDecl * Method,ArrayRef<Expr * > Args,QualType ReceiverType,bool IsClassObjectCall) checkFoundationAPI() argument
2555 DiagnoseCStringFormatDirectiveInObjCAPI(Sema & S,ObjCMethodDecl * Method,Selector Sel,Expr ** Args,unsigned NumArgs) DiagnoseCStringFormatDirectiveInObjCAPI() argument
2620 BuildClassMessage(TypeSourceInfo * ReceiverTypeInfo,QualType ReceiverType,SourceLocation SuperLoc,Selector Sel,ObjCMethodDecl * Method,SourceLocation LBracLoc,ArrayRef<SourceLocation> SelectorLocs,SourceLocation RBracLoc,MultiExprArg ArgsIn,bool isImplicit) BuildClassMessage() argument
2789 BuildInstanceMessageImplicit(Expr * Receiver,QualType ReceiverType,SourceLocation Loc,Selector Sel,ObjCMethodDecl * Method,MultiExprArg Args) BuildInstanceMessageImplicit() argument
2845 BuildInstanceMessage(Expr * Receiver,QualType ReceiverType,SourceLocation SuperLoc,Selector Sel,ObjCMethodDecl * Method,SourceLocation LBracLoc,ArrayRef<SourceLocation> SelectorLocs,SourceLocation RBracLoc,MultiExprArg ArgsIn,bool isImplicit) BuildInstanceMessage() argument
[all...]
H A DSemaDeclObjC.cpp322 ? /*Method*/ 0 in DiagnoseObjCImplementedDeprecations()
1772 for (const auto *Method : CAT->methods()) { in DiagnoseClassExtensionDupMethods()
1773 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()]; in DiagnoseClassExtensionDupMethods() local
1775 (PrevMethod->isInstanceMethod() == Method->isInstanceMethod()) && in DiagnoseClassExtensionDupMethods()
1776 !MatchTwoMethodDeclarations(Method, PrevMethod)) { in DiagnoseClassExtensionDupMethods()
1777 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in DiagnoseClassExtensionDupMethods()
1778 << Method->getDeclName(); in DiagnoseClassExtensionDupMethods()
2609 void SemaObjC::CheckConflictingOverridingMethod(ObjCMethodDecl *Method, in WarnConflictingTypedMethods()
2613 CheckMethodOverrideReturn(SemaRef, Method, Overridden, IsProtocolMethodDecl, in CheckConflictingOverridingMethod()
2616 for (ObjCMethodDecl::param_iterator IM = Method in CheckConflictingOverridingMethod()
2611 CheckConflictingOverridingMethod(ObjCMethodDecl * Method,ObjCMethodDecl * Overridden,bool IsProtocolMethodDecl) CheckConflictingOverridingMethod() argument
3299 isMethodContextSameForKindofLookup(ObjCMethodDecl * Method,ObjCMethodDecl * MethodInList) isMethodContextSameForKindofLookup() argument
3320 addMethodToGlobalList(ObjCMethodList * List,ObjCMethodDecl * Method) addMethodToGlobalList() argument
3435 AddMethodToGlobalPool(ObjCMethodDecl * Method,bool impl,bool instance) AddMethodToGlobalPool() argument
3480 FilterMethodsByTypeBound(ObjCMethodDecl * Method,const ObjCObjectType * TypeBound) FilterMethodsByTypeBound() argument
3658 for (const ObjCMethodList *Method = &Methods.first; Method; LookupImplementedMethodInGlobalPool() local
3665 for (const ObjCMethodList *Method = &Methods.second; Method; LookupImplementedMethodInGlobalPool() local
3677 HelperSelectorsForTypoCorrection(SmallVectorImpl<const ObjCMethodDecl * > & BestMethod,StringRef Typo,const ObjCMethodDecl * Method) HelperSelectorsForTypoCorrection() argument
4020 ObjCMethodDecl *Method = ActOnAtEnd() local
4246 CheckRelatedResultTypeCompatibility(Sema & S,ObjCMethodDecl * Method,ObjCInterfaceDecl * CurrentClass) CheckRelatedResultTypeCompatibility() argument
4286 const ObjCMethodDecl *Method; global() member in __anon8421e07e0711::OverrideSearch
4632 checkObjCMethodX86VectorTypes(Sema & SemaRef,const ObjCMethodDecl * Method) checkObjCMethodX86VectorTypes() argument
4672 mergeObjCDirectMembers(Sema & S,Decl * CD,ObjCMethodDecl * Method) mergeObjCDirectMembers() argument
4681 checkObjCDirectMethodClashes(Sema & S,ObjCInterfaceDecl * IDecl,ObjCMethodDecl * Method,ObjCImplDecl * ImpDecl=nullptr) checkObjCDirectMethodClashes() argument
5296 GetIvarBackingPropertyAccessor(const ObjCMethodDecl * Method,const ObjCPropertyDecl * & PDecl) const GetIvarBackingPropertyAccessor() argument
5327 const ObjCMethodDecl *Method; global() member in __anon8421e07e0b11::UnusedBackingIvarChecker
5332 UnusedBackingIvarChecker(Sema & S,const ObjCMethodDecl * Method,const ObjCIvarDecl * IvarD) UnusedBackingIvarChecker() argument
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dargument-comment-gmock.cpp49 #define GMOCK_METHOD2_(tn, constness, ct, Method, ...) \ argument
51 ct Method( \
55 gmock_##Method(GMOCK_MATCHER_(tn, 1, __VA_ARGS__) gmock_a1, \
65 virtual void Method(int param_one_base, int param_two_base);
69 virtual void Method(int param_one, int param_two);
74 MOCK_METHOD2(Method, void(int a, int b));
80 MOCK_METHOD2(Method, void(int aaa, int bbb));
85 EXPECT_CALL(m, Method(/*param_one=*/1, /*param_tw=*/2)); in test_gmock_expectations()
120 EXPECT_CALL(m2, Method(/*aaa=*/5, /*bbc=*/6)); in test_gmock_expectations()
125 m.Method(/*param_one=*/1, /*param_tw=*/2); in test_gmock_direct_calls()
/llvm-project/clang/lib/AST/
H A DExprObjC.cpp27 ObjCMethodDecl *Method, SourceRange SR)
29 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral() argument
39 QualType T, ObjCMethodDecl *Method, in Create()
42 return new (Mem) ObjCArrayLiteral(Elements, T, Method, SR); in Create()
110 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr()
114 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
116 HasMethod(Method != nullptr), IsDelegateInitCall(false), in ObjCMessageExpr()
129 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in ObjCMessageExpr()
133 reinterpret_cast<uintptr_t>(Method in ObjCMessageExpr()
41 Create(const ASTContext & C,ArrayRef<Expr * > Elements,QualType T,ObjCMethodDecl * Method,SourceRange SR) Create() argument
112 ObjCMessageExpr(QualType T,ExprValueKind VK,SourceLocation LBracLoc,SourceLocation SuperLoc,bool IsInstanceSuper,QualType SuperType,Selector Sel,ArrayRef<SourceLocation> SelLocs,SelectorLocationsKind SelLocsK,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) ObjCMessageExpr() argument
131 ObjCMessageExpr(QualType T,ExprValueKind VK,SourceLocation LBracLoc,TypeSourceInfo * Receiver,Selector Sel,ArrayRef<SourceLocation> SelLocs,SelectorLocationsKind SelLocsK,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) ObjCMessageExpr() argument
147 ObjCMessageExpr(QualType T,ExprValueKind VK,SourceLocation LBracLoc,Expr * Receiver,Selector Sel,ArrayRef<SourceLocation> SelLocs,SelectorLocationsKind SelLocsK,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) ObjCMessageExpr() argument
179 Create(const ASTContext & Context,QualType T,ExprValueKind VK,SourceLocation LBracLoc,SourceLocation SuperLoc,bool IsInstanceSuper,QualType SuperType,Selector Sel,ArrayRef<SourceLocation> SelLocs,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) Create() argument
198 Create(const ASTContext & Context,QualType T,ExprValueKind VK,SourceLocation LBracLoc,TypeSourceInfo * Receiver,Selector Sel,ArrayRef<SourceLocation> SelLocs,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) Create() argument
217 Create(const ASTContext & Context,QualType T,ExprValueKind VK,SourceLocation LBracLoc,Expr * Receiver,Selector Sel,ArrayRef<SourceLocation> SelLocs,ObjCMethodDecl * Method,ArrayRef<Expr * > Args,SourceLocation RBracLoc,bool isImplicit) Create() argument
[all...]
H A DDeclObjC.cpp764 ObjCMethodDecl *Method = nullptr; in lookupPrivateMethod()
766 Method = Instance ? ImpDecl->getInstanceMethod(Sel) in lookupPrivateMethod() local
770 if (!Method) in lookupPrivateMethod()
771 Method = getCategoryMethod(Sel, Instance); in lookupPrivateMethod()
776 if (!Instance && !Method && !getSuperClass()) { in lookupPrivateMethod()
777 Method = lookupInstanceMethod(Sel); in lookupPrivateMethod()
780 if (!Method) in lookupPrivateMethod()
781 Method = lookupPrivateMethod(Sel, true); in lookupPrivateMethod()
784 if (!Method && getSuperClass()) in lookupPrivateMethod()
786 return Method; in lookupPrivateMethod()
1253 CollectOverriddenMethodsRecurse(const ObjCContainerDecl * Container,const ObjCMethodDecl * Method,SmallVectorImpl<const ObjCMethodDecl * > & Methods,bool MovedToSuper) CollectOverriddenMethodsRecurse() argument
1313 CollectOverriddenMethods(const ObjCContainerDecl * Container,const ObjCMethodDecl * Method,SmallVectorImpl<const ObjCMethodDecl * > & Methods) CollectOverriddenMethods() argument
1319 collectOverriddenMethodsSlow(const ObjCMethodDecl * Method,SmallVectorImpl<const ObjCMethodDecl * > & overridden) collectOverriddenMethodsSlow() argument
1362 const ObjCMethodDecl *Method = this; getOverriddenMethods() local
[all...]
/llvm-project/clang/test/Index/
H A Dcomplete-objc-message.m86 - (int)Method:(int)i;
87 - (int)Method; method
88 - (int)Method:(float)f Arg1:(int)i1 Arg2:(int)i2;
89 - (int)Method:(float)f Arg1:(int)i1 OtherArg:(id)obj;
90 - (int)Method:(float)f SomeArg:(int)i1 OtherArg:(id)obj;
95 [ovl Method:1 Arg1:1 OtherArg:ovl];
99 - (int)Method:(int)i, ...;
103 [e Method:1, 2, 3];
107 + (int)Method:(int)i;
108 + (int)Method; class
[all …]
/llvm-project/third-party/benchmark/include/benchmark/
H A Dbenchmark.h1484 #define BENCHMARK_PRIVATE_CONCAT_NAME(BaseClass, Method) \ argument
1485 BaseClass##_##Method##_Benchmark
1588 #define BENCHMARK_PRIVATE_DECLARE_F(BaseClass, Method) \ argument
1589 class BaseClass##_##Method##_Benchmark : public BaseClass { \
1591 BaseClass##_##Method##_Benchmark() { \
1592 this->SetName(#BaseClass "/" #Method); \
1599 #define BENCHMARK_TEMPLATE1_PRIVATE_DECLARE_F(BaseClass, Method, a) \ argument
1600 class BaseClass##_##Method##_Benchmark : public BaseClass<a> { \
1602 BaseClass##_##Method##_Benchmark() { \
1603 this->SetName(#BaseClass "<" #a ">/" #Method); \
[all …]
/llvm-project/mlir/tools/mlir-tblgen/
H A DAttrOrTypeDefGen.cpp126 // Interface Method Emission
341 Method *verifier = in emitParserPrinter()
343 Method::Static, builderParams); in emitParserPrinter()
370 Method *verifier = in getBuilderParams()
372 Method::Static, builderParams); in getBuilderParams()
397 auto *mnemonic = defCls.addStaticMethod<Method::Constexpr>( in emitCheckedBuilder()
412 hasAssemblyFormat ? Method::Static in getCustomBuilderParams()
413 : Method::StaticDeclaration,
416 auto props = hasAssemblyFormat ? Method::Const : Method in emitCustomBuilder()
[all...]
/llvm-project/clang/include/clang/Basic/
H A DThunk.h172 const CXXMethodDecl *Method; member
175 ThunkInfo() : Method(nullptr), ThisType(nullptr) {} in ThunkInfo()
178 const Type *ThisT, const CXXMethodDecl *Method = nullptr)
179 : This(This), Return(Return), Method(Method), ThisType(ThisT) {} in This()
183 LHS.Method == RHS.Method && LHS.ThisType == RHS.ThisType;
187 return This.isEmpty() && Return.isEmpty() && Method == nullptr; in isEmpty()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp84 const auto *Method = Result.Nodes.getNodeAs<CXXMethodDecl>("method"); in check()
86 diag(Method->getBeginLoc(), "operator=() should return '%0&'") in check()
87 << Method->getParent()->getName(); in check()
89 diag(Method->getBeginLoc(),
91 << Method->getParent()->getName() << getLangOpts().CPlusPlus11;
93 diag(Method->getBeginLoc(),
95 << !Method->isConst();
75 const auto *Method = Result.Nodes.getNodeAs<CXXMethodDecl>("method"); check() local
/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/
H A DVTuneSupportPlugin.cpp54 auto &Method = Batch.Methods.back(); in getMethodBatch() local
55 Method.MethodID = 0; in getMethodBatch()
56 Method.ParentMI = 0; in getMethodBatch()
57 Method.LoadAddr = Sym->getAddress(); in getMethodBatch()
58 Method.LoadSize = Sym->getSize(); in getMethodBatch()
59 Method.NameSI = GetStringIdx(*Sym->getName()); in getMethodBatch()
60 Method.ClassFileSI = 0; in getMethodBatch()
61 Method.SourceFileSI = 0; in getMethodBatch()
73 Method.SourceFileSI = Batch.Strings.size(); in getMethodBatch()
76 Method in getMethodBatch()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp265 if (const auto *const Method = in AST_MATCHER_P() local
267 if (Method->isConst() || Method->isStatic()) { in AST_MATCHER_P()
271 if (isLikelyShallowConst(*Method)) { in AST_MATCHER_P()
282 Method->getReturnType().getCanonicalType()->isPointerType() in AST_MATCHER_P()
298 const auto *const Method = in AST_MATCHER_P() local
301 if (Method == nullptr) { in AST_MATCHER_P()
307 if (Method->isConst() || Method->isStatic()) { in AST_MATCHER_P()
310 if (isLikelyShallowConst(*Method)) { in AST_MATCHER_P()
315 Method->getReturnType().getCanonicalType()->isPointerType() ? 1 in AST_MATCHER_P()
/llvm-project/clang-tools-extra/clangd/xpc/
H A DXPCTransport.cpp57 void notify(StringRef Method, json::Value Params) override { in notify() argument
60 {"method", Method}, in notify()
64 void call(StringRef Method, json::Value Params, json::Value ID) override { in call() argument
68 {"method", Method}, in call()
119 auto Method = Object->getString("method"); in handleMessage() local
120 if (!Method) { // This is a response. in handleMessage()
139 return Handler.onCall(*Method, std::move(Params), std::move(*ID)); in handleMessage()
141 return Handler.onNotify(*Method, std::move(Params)); in handleMessage()
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIterator.cpp38 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 in isIterator()
[all...]

12345678910