Home
last modified time | relevance | path

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

123456789

/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DLSPBinder.h136 Raw.MethodHandlers[Method] = [Method, Handler, This](JSON RawParams, in method()
148 Raw.NotificationHandlers[Method] = [Method, Handler, This](JSON RawParams) { in notification()
161 Raw.CommandHandlers[Method] = [Method, Handler, This](JSON RawParams, in command()
171 llvm::StringLiteral Method; variable
174 : Method(Method), Out(Out) {} in UntypedOutgoingNotification()
181 [Method(Method), Out(Out)](Request R) { Out->notify(Method, JSON(R)); };
191 llvm::StringLiteral Method; variable
194 : Method(Method), Out(Out) {} in UntypedOutgoingMethod()
200 return [Method(Method), Out(Out)](Request R, Callback<Response> Reply) {
202 Method, JSON(R),
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-generated-function-mockers.h160 Method)
186 Method)
216 Method)
251 Method)
289 Method)
331 Method)
377 Method)
426 Method)
479 Method)
537 Method)
[all …]
/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DClass.h247 Method, enumerator
285 class Method : public ClassDeclarationBase<ClassDeclaration::Method> {
323 Method(Method &&) = default;
324 Method &operator=(Method &&) = default;
401 return isa<Method>(other) && cast<Method>(other)->isConstructor(); in classof()
584 template <Method::Properties Properties = Method::None, typename... Args>
594 template <Method::Properties Properties = Method::None, typename RetTypeT,
604 template <Method::Properties Properties = Method::None, typename RetTypeT,
612 template <Method::Properties Properties = Method::None, typename RetTypeT,
621 template <Method::Properties Properties = Method::None, typename RetTypeT,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DLSPClient.cpp87 std::swap(Result, Notifications[Method]); in takeNotifications()
109 logBody(Method, V, /*Send=*/false); in notify()
111 Notifications[Method].push_back(std::move(V)); in notify()
116 logBody(Method, Params, /*Send=*/false); in call()
147 T->enqueue([ID(Slot.first), Method(Method.str()), in call()
149 logBody(Method, Params, /*Send=*/true); in call()
150 H.onCall(Method, std::move(Params), ID); in call()
156 T->enqueue([Method(Method.str()), in notify()
158 logBody(Method, Params, /*Send=*/true); in notify()
159 H.onNotify(Method, std::move(Params)); in notify()
[all …]
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()
H A DLSPBinderTests.cpp44 void callMethod(llvm::StringRef Method, llvm::json::Value Params, in callMethod()
46 Received[Method].push_back(Params); in callMethod()
47 if (Method == "fail") in callMethod()
51 void notify(llvm::StringRef Method, llvm::json::Value Params) override { in notify()
52 Received[Method].push_back(std::move(Params)); in notify()
55 std::vector<llvm::json::Value> take(llvm::StringRef Method) { in take()
56 std::vector<llvm::json::Value> Result = Received.lookup(Method); in take()
57 Received.erase(Method); in take()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseOverrideCheck.cpp89 assert(Method != nullptr); in check()
91 Method = Method->getInstantiatedFromMemberFunction(); in check()
93 if (Method->isImplicit() || Method->getLocation().isMacroID() || in check()
94 Method->isOutOfLine()) in check()
97 bool HasVirtual = Method->isVirtualAsWritten(); in check()
98 bool HasOverride = Method->getAttr<OverrideAttr>(); in check()
99 bool HasFinal = Method->getAttr<FinalAttr>(); in check()
126 auto Diag = diag(Method->getLocation(), Message) in check()
145 SourceLocation MethodLoc = Method->getLocation(); in check()
155 if (Method->hasAttrs()) { in check()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprObjC.cpp150 if (!Method) { in validateBoxingMethod()
287 Method = in getNSNumberFactoryMethod()
311 return Method; in getNSNumberFactoryMethod()
347 if (!Method) in BuildObjCNumericLiteral()
1301 if (!Method) in ParseObjCSelectorExpression()
1693 if (!Method) in EmitRelatedResultTypeNote()
2268 if (Method && Method->getClassInterface()) in ObjCInterfaceOrSuperCCC()
2695 if (Method && !Method->getReturnType()->isVoidType() && in BuildClassMessage()
2751 if (Method) in BuildClassMessage()
3137 (Method && Method->getMethodFamily() == OMF_init) in BuildInstanceMessage()
[all …]
H A DSemaDeclObjC.cpp3648 for (const ObjCMethodList *Method = &Methods.first; Method; in LookupImplementedMethodInGlobalPool() local
3649 Method = Method->getNext()) in LookupImplementedMethodInGlobalPool()
3655 for (const ObjCMethodList *Method = &Methods.second; Method; in LookupImplementedMethodInGlobalPool() local
3656 Method = Method->getNext()) in LookupImplementedMethodInGlobalPool()
4032 InsMap[Method->getSelector()] = Method; in ActOnAtEnd()
4056 ClsMap[Method->getSelector()] = Method; in ActOnAtEnd()
4654 if (!Method->isDirectMethod() && !Method->hasAttr<UnavailableAttr>() && in mergeObjCDirectMembers()
4656 Method->addAttr( in mergeObjCDirectMembers()
5273 Method = IDecl->lookupMethod(Method->getSelector(), /*isInstance=*/true, in GetIvarBackingPropertyAccessor()
5276 if (!Method || !Method->isPropertyAccessor()) in GetIvarBackingPropertyAccessor()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dcpp.cc280 print_method(Method(clazz, cons)); in print_constructors()
378 Method method(clazz, fd, name); in print_method_variants()
444 Method method(clazz, fd, name); in print_descendent_overloads()
938 return Method::Kind::constructor; in get_kind()
967 Method::Method(const isl_class &clazz, FunctionDecl *fd, in Method() function in Method
981 Method::Method(const isl_class &clazz, FunctionDecl *fd) : in Method() function in Method
998 int Method::c_num_params() const in c_num_params()
1009 int Method::num_params() const in num_params()
1095 return Method::get_param(pos); in ConversionMethod()
1178 Method::print_param_use(os, pos); in print_param_use()
[all …]
H A Dcpp.h19 struct Method { struct
26 Method(const isl_class &clazz, FunctionDecl *fd, argument
28 Method(const isl_class &clazz, FunctionDecl *fd);
50 struct NoCopyMethod : Method { argument
51 NoCopyMethod(const Method &method) : Method(method) {} in NoCopyMethod()
72 ConversionMethod(const Method &method,
87 struct EnumMethod : public Method {
117 std::string return_type(const Method &method) const;
137 bool is_implicit_conversion(const Method &cons);
172 virtual void print_method(const Method &method) = 0;
[all …]
H A Dplain_cpp.h57 std::string get_return_type(const Method &method);
80 void print_full_method_header(const Method &method);
107 virtual void print_method(const Method &method) override;
122 virtual void print_method(const Method &method) override;
136 void print_set_persistent_callback(const Method &method);
138 void print_argument_validity_check(const Method &method);
139 void print_save_ctx(const Method &method);
141 void print_exceptional_execution_check(const Method &method);
142 void print_method_return(const Method &method);
H A Dtemplate_cpp.cc1286 void print_at_method(const Method &method);
1813 const Method &method) in print_static_method()
1879 const Method &method) in print_constructor()
2415 const Method &method) in print_at_method()
2464 const Method &method) in print_special_member_method()
2473 const Method &method) in print_type_named_member_method()
2560 const Method &method) in print_member_method()
2579 const Method &method) in print_any_method()
2582 case Method::Kind::static_method: in print_any_method()
2585 case Method::Kind::constructor: in print_any_method()
[all …]
/llvm-project-15.0.7/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-15.0.7/third-party/benchmark/include/benchmark/
H A Dbenchmark.h1259 #define BENCHMARK_PRIVATE_CONCAT_NAME(BaseClass, Method) \ argument
1260 BaseClass##_##Method##_Benchmark
1387 #define BENCHMARK_DEFINE_F(BaseClass, Method) \ argument
1388 BENCHMARK_PRIVATE_DECLARE_F(BaseClass, Method) \
1405 BENCHMARK_TEMPLATE1_DEFINE_F(BaseClass, Method, a)
1408 #define BENCHMARK_REGISTER_F(BaseClass, Method) \ argument
1416 #define BENCHMARK_F(BaseClass, Method) \ argument
1417 BENCHMARK_PRIVATE_DECLARE_F(BaseClass, Method) \
1418 BENCHMARK_REGISTER_F(BaseClass, Method); \
1437 #define BENCHMARK_TEMPLATE_F(BaseClass, Method, a) \ argument
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DExprObjC.cpp29 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()
116 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
118 HasMethod(Method != nullptr), IsDelegateInitCall(false), in ObjCMessageExpr()
135 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
151 reinterpret_cast<uintptr_t>(Method ? Method : Sel.getAsOpaquePtr())), in ObjCMessageExpr()
179 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in Create() argument
198 ObjCMethodDecl *Method, ArrayRef<Expr *> Args, in Create() argument
[all …]
H A DDeclObjC.cpp765 if (!Method) in lookupPrivateMethod()
775 if (!Method) in lookupPrivateMethod()
779 if (!Method && getSuperClass()) in lookupPrivateMethod()
781 return Method; in lookupPrivateMethod()
1252 if (Method != Overridden) { in CollectOverriddenMethodsRecurse()
1286 assert(Method->isOverriding()); in collectOverriddenMethodsSlow()
1302 Method = IFaceMeth; in collectOverriddenMethodsSlow()
1315 Method = IFaceMeth; in collectOverriddenMethodsSlow()
1330 Method = cast<ObjCContainerDecl>(Method->getDeclContext()) in getOverriddenMethods()
1331 ->getMethod(Method->getSelector(), Method->isInstanceMethod(), in getOverriddenMethods()
[all …]
/llvm-project-15.0.7/clang/test/Index/
H A Dcomplete-objc-message.m86 - (int)Method:(int)i;
87 - (int)Method; method
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
116 [Overload2 Method:1 Arg1:1 OtherArg:ovl];
120 [x Method:1 Arg1:1 OtherArg:ovl];
122 [id Method:1 Arg1:1 OtherArg:ovl];
[all …]
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DAttrOrTypeDefGen.cpp280 auto props = hasAssemblyFormat ? Method::Const : Method::ConstDeclaration; in emitParserPrinter()
281 Method *printer = in emitParserPrinter()
291 Method *m = defCls.addMethod( in emitAccessors()
293 def.genStorageClass() ? Method::Const : Method::ConstDeclaration); in emitAccessors()
326 Method *m = defCls.addStaticMethod( in emitDefaultBuilder()
364 auto props = builder.getBody() ? Method::Static : Method::StaticDeclaration; in emitCustomBuilder()
392 auto props = builder.getBody() ? Method::Static : Method::StaticDeclaration; in emitCheckedCustomBuilder()
396 Method *m = defCls.addMethod( in emitCheckedCustomBuilder()
439 method.isStatic() ? Method::StaticDeclaration : Method::ConstDeclaration; in emitTraitMethod()
496 Method *eq = storageCls->addConstMethod<Method::Inline>( in emitEquals()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DThunk.h168 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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp77 const auto *Method = Result.Nodes.getNodeAs<CXXMethodDecl>("method"); in check() local
79 diag(Method->getBeginLoc(), "operator=() should return '%0&'") in check()
80 << Method->getParent()->getName(); in check()
82 diag(Method->getBeginLoc(), in check()
84 << Method->getParent()->getName() << getLangOpts().CPlusPlus11; in check()
86 diag(Method->getBeginLoc(), in check()
88 << !Method->isConst(); in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/xpc/
H A DXPCTransport.cpp56 void notify(StringRef Method, json::Value Params) override { in notify() argument
59 {"method", Method}, in notify()
63 void call(StringRef Method, json::Value Params, json::Value ID) override { in call() argument
67 {"method", Method}, in call()
117 auto Method = Object->getString("method"); in handleMessage() local
118 if (!Method) { // This is a response. in handleMessage()
137 return Handler.onCall(*Method, std::move(Params), std::move(*ID)); in handleMessage()
139 return Handler.onNotify(*Method, std::move(Params)); in handleMessage()
/llvm-project-15.0.7/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->getNumParams() == 1); in isIterator()
62 HasDerefOp = (Method->getNumParams() == 0); in isIterator()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSlicingCheck.cpp79 for (const auto *Method : DerivedDecl.methods()) { in diagnoseSlicedOverriddenMethods() local
82 if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method)) in diagnoseSlicedOverriddenMethods()
84 if (Method->size_overridden_methods() > 0) { in diagnoseSlicedOverriddenMethods()
87 << &DerivedDecl << &BaseDecl << Method; in diagnoseSlicedOverriddenMethods()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DClass.cpp116 void Method::writeDeclTo(raw_indented_ostream &os) const { in writeDeclTo()
133 void Method::writeDefTo(raw_indented_ostream &os, StringRef namePrefix) const { in writeDefTo()
304 SmallVector<std::unique_ptr<Method>> publicMethods, privateMethods; in finalize()
347 Method *insertAndPruneMethods(std::vector<std::unique_ptr<Method>> &methods, in insertAndPruneMethods()
348 std::unique_ptr<Method> newMethod) { in insertAndPruneMethods()
361 Method *Class::addMethodAndPrune(Method &&newMethod) { in addMethodAndPrune()
363 std::make_unique<Method>(std::move(newMethod))); in addMethodAndPrune()

123456789