Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 1006) sorted by relevance

12345678910>>...41

/llvm-project/mlir/tools/mlir-tblgen/
H A DOpInterfacesGen.cpp41 /// Emit the method name and argument list for the given method. If 'addThisArg'
44 static void emitMethodNameAndArgs(const InterfaceMethod &method, in emitMethodNameAndArgs()
47 os << method.getName() << '('; in emitMethodNameAndArgs()
53 << "tablegen_opaque_val" << (method.arg_empty() ? "" : ", "); in emitMethodNameAndArgs()
55 llvm::interleaveComma(method.getArguments(), os, in emitMethodNameAndArgs()
172 static void emitInterfaceMethodDoc(const InterfaceMethod &method, in emitInterfaceMethodDoc()
174 if (std::optional<StringRef> description = method.getDescription()) in emitInterfaceMethodDoc()
181 for (auto &method : interface.getMethods()) { in emitInterfaceDefMethods()
182 emitInterfaceMethodDoc(method, o in emitInterfaceDefMethods()
42 emitMethodNameAndArgs(const InterfaceMethod & method,raw_ostream & os,StringRef valueType,bool addThisArg,bool addConst) emitMethodNameAndArgs() argument
171 emitInterfaceMethodDoc(const InterfaceMethod & method,raw_ostream & os,StringRef prefix="") emitInterfaceMethodDoc() argument
180 for (auto &method : interface.getMethods()) { emitInterfaceDefMethods() local
237 for (auto &method : interface.getMethods()) { emitConceptDecl() local
290 __anonba990a3f0602(const InterfaceMethod &method) emitModelDecl() argument
294 for (auto &method : interface.getMethods()) { emitModelDecl() local
313 for (auto &method : interface.getMethods()) { emitModelDecl() local
346 for (auto &method : interface.getMethods()) { emitModelMethodsDef() local
380 for (auto &method : interface.getMethods()) { emitModelMethodsDef() local
407 for (auto &method : interface.getMethods()) { emitModelMethodsDef() local
457 for (auto &method : interface.getMethods()) { emitTraitDecl() local
501 for (auto &method : interface.getMethods()) { emitInterfaceDeclMethods() local
637 for (const auto &method : interface.getMethods()) { emitInterfaceDoc() local
[all...]
/llvm-project/lldb/unittests/Language/ObjC/
H A DObjCLanguageTest.cpp45 std::optional<const ObjCLanguage::MethodName> method = in TEST() local
47 EXPECT_TRUE(method.has_value()); in TEST()
49 method->GetFullNameWithoutCategory()); in TEST()
50 EXPECT_EQ(test.class_name, method->GetClassName()); in TEST()
52 method->GetClassNameWithCategory()); in TEST()
53 EXPECT_EQ(test.category, method->GetCategory()); in TEST()
54 EXPECT_EQ(test.selector, method->GetSelector()); in TEST()
59 std::optional<const ObjCLanguage::MethodName> method = in TEST() local
61 EXPECT_FALSE(method.has_value()); in TEST()
66 std::optional<const ObjCLanguage::MethodName> method = in TEST() local
[all …]
/llvm-project/polly/lib/External/isl/interface/
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.cc361 const ConversionMethod &method) in print_method() argument
363 print_full_method_header(method); in print_method()
368 void plain_cpp_generator::decl_printer::print_method(const Method &method) in print_method() argument
370 print_full_method_header(method); in print_method()
546 FunctionDecl *method) in print_persistent_callback_prototype() argument
549 ParmVarDecl *param = persistent_callback_arg(method); in print_persistent_callback_prototype()
559 callback_name = clazz.persistent_callback_name(method); in print_persistent_callback_prototype()
575 FunctionDecl *method) in print_persistent_callback_setter_prototype() argument
578 ParmVarDecl *param = persistent_callback_arg(method); in print_persistent_callback_setter_prototype()
584 callback_name = clazz.persistent_callback_name(method); in print_persistent_callback_setter_prototype()
[all …]
H A Dcpp.cc300 EnumMethod method(clazz, fd, set.method_name, set.name); in print_set_enums() local
302 print_method(method); in print_set_enums()
378 Method method(clazz, fd, name); in print_method_variants() local
379 std::vector<bool> convert(method.num_params()); in print_method_variants()
381 if (method.clazz.copied_from.count(method.fd) == 0) { in print_method_variants()
382 print_method(method); in print_method_variants()
386 auto super = method.clazz.copied_from.at(method.fd); in print_method_variants()
387 print_method(ConversionMethod(method, super.name)); in print_method_variants()
389 if (method.kind != Method::Kind::member_method) in print_method_variants()
392 print_method(ConversionMethod(method, [&] (int pos) { in print_method_variants()
[all …]
/llvm-project/clang/test/SemaObjC/
H A Dattr-availability-1.m14 - (void)method __attribute__((availability(macosx,introduced=10_1,deprecated=10_2))); // expected-n…
16 …_attribute__((availability(macosx,introduced=10_3))); // expected-note{{overridden method is here}}
19 …_attribute__((availability(macosx,deprecated=10_3))); // expected-note{{overridden method is here}}
21 …_attribute__((availability(macosx,introduced=10_3))); // expected-note{{overridden method is here}}
25 - (void)method; // NOTE: we expect 'method' to *not* inherit availability. method
26 …osx,introduced=10_4))); // expected-warning{{overriding method introduced after overridden method
29 …sx,deprecated=10_2))); // expected-warning{{overriding method deprecated before overridden method
31 …ailable))); // expected-warning{{overriding method cannot be unavailable on macOS when its overrid…
35 [a method]; // expected-warning{{'method' is deprecated: first deprecated in macOS 10.2}}
36 [b method]; // no-warning
[all …]
H A Dwarn-superclass-method-mismatch.m1 // RUN: %clang_cc1 -fsyntax-only -Wsuper-class-method-mismatch -verify %s
10 -(void) method: (int*) x; // expected-note {{previous declaration is here}}
24 -(void) method: (struct A*) a; // expected-warning {{method parameter type 'struct A *' does not ma…
25 …id) method1: (Sub*) x; // expected-warning {{method parameter type 'Sub *' does not match super cl…
27 …(Sub *)x2 : (float)x3; // expected-warning {{method parameter type 'Sub *' does not match super cl…
29 …(float*)f1 : (Sub*) x; // expected-warning {{method parameter type 'Sub *' does not match super cl…
30 …: (int) x : (float) d; // expected-warning {{method parameter type 'float' does not match super cl…
31 …(int) x : (double) d; // expected-warning {{method parameter type 'double' does not match super cl…
36 …[base method:&x]; // warn. if base is actually 'Sub' it will use -[Sub method] with wrong argumen…
H A Dmethod-undefined-warn-1.m6 - (int) int_meth; // expected-note {{method 'int_meth' declared here}}
7 + (int) cls_meth; // expected-note {{method 'cls_meth' declared here}}
8 + (void) cls_meth1 : (int) arg1; // expected-note {{method 'cls_meth1:' declared here}}
11 @implementation INTF // expected-warning {{method definition for 'int_meth' not found}} \
12 // expected-warning {{method definition for 'cls_meth' not found}} \
13 // expected-warning {{method definition for 'cls_meth1:' not found}}
22 - (int) int_meth; // expected-note {{method 'int_meth' declared here}}
23 + (int) cls_meth; // expected-note {{method 'cls_meth' declared here}}
24 + (void) cls_meth1 : (int) arg1; // expected-note {{method 'cls_meth1:' declared here}}
27 @implementation INTF1 // expected-warning {{method definition for 'int_meth' not found}} \
[all …]
H A DDoubleMethod.m1 // RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify -Wno-objc-root-class %s
8 - (void) method; // expected-note {{previous declaration is here}} method
9 - (void) method; // expected-warning {{multiple declarations of method 'method' found and ignored}} method
13 - (void) method {;} // expected-note {{previous declaration is here}} method
14 - (void) method {;} // expected-error {{duplicate declaration of method 'method'}} method
H A Drelated-result-type-inference.m11 - (id)retain; // expected-note{{instance method 'retain' is assumed to return an instance of its r…
49 // Inference based on method family
85 - (id)initBlah; // expected-note 2{{overridden method is part of the 'init' method family}}
89 - (Unrelated *)initBlah; // expected-warning{{method is expected to return an instance of its class…
96 - (Unrelated *)initBlah { // expected-warning{{method is expected to return an instance of its cla…
102 + (id)newBlarg; // expected-note{{overridden method is part of the 'new' method family}}
106 + alloc; // expected-note{{overridden method is part of the 'alloc' method family}}
110 + (Unrelated *)newBlarg { // expected-warning{{method is expected to return an instance of its clas…
114 + (Unrelated *)alloc { // expected-warning{{method is expected to return an instance of its class t…
120 - (id)initBlah; // expected-note{{overridden method is part of the 'init' method family}}
[all …]
H A Dundef-protocol-methods-1.m4 - (void) P1proto; // expected-note {{method 'P1proto' declared here}}
5 + (void) ClsP1Proto; // expected-note {{method 'ClsP1Proto' declared here}}
9 - (void) P2proto; // expected-note {{method 'P2proto' declared here}}
10 + (void) ClsP2Proto; // expected-note {{method 'ClsP2Proto' declared here}}
14 - (void) P3proto; // expected-note {{method 'P3proto' declared here}}
15 + (void) ClsP3Proto; // expected-note {{method 'ClsP3Proto' declared here}}
20 - (void) meth; // expected-note {{method 'meth' declared here}}
21 - (void) meth : (int) arg1; // expected-note {{method 'meth:' declared here}}
22 + (void) cls_meth : (int) arg1; // expected-note {{method 'cls_meth:' declared here}}
H A Dclass-message-protocol-lookup.m15 - (id)alloc2; // expected-note 2 {{method 'alloc2' declared here}}
20 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
21 …ol> c1 = [c1 alloc2]; // expected-warning {{instance method 'alloc2' found instead of class metho…
29 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
30 …ol> c1 = [c1 alloc2]; // expected-warning {{instance method 'alloc2' found instead of class metho…
48 - (void)otherInstanceMethod; // expected-note {{method 'otherInstanceMethod' declared here}}
57 …stanceMethod]; // expected-warning {{instance method 'otherInstanceMethod' found instead of class…
H A Dmethod-direct.m20 - (void)otherRootDirect __attribute__((objc_direct)); // expected-note {{direct method 'otherRootDi…
21 + (void)otherClassRootDirect __attribute__((objc_direct)); // expected-note {{direct method 'otherC…
22 + (void)otherOtherClassRootDirect __attribute__((objc_direct)); // expected-note {{direct method 'o…
72 - (void)rootDirect; // expected-error {{cannot override a method that is declared di…
73 + (void)classRootDirect; // expected-error {{cannot override a method that is declared di…
74 - (void)rootExtensionDirect; // expected-error {{cannot override a method that is declared di…
75 + (void)classRootExtensionDirect; // expected-error {{cannot override a method that is declared di…
76 - (void)rootExtensionDirect2; // expected-error {{cannot override a method that is declared di…
77 + (void)classRootExtensionDirect2; // expected-error {{cannot override a method that is declared di…
78 - (void)rootCategoryDirect; // expected-error {{cannot override a method that is declared di…
[all …]
H A Dunknown-anytype.m19 double *dp = [test1() getSomePtr]; // okay: picks first method found
20 …UnknownMethod]; // expected-error{{no known method '-otherUnknownMethod'; cast the message send to…
22 …UnknownMethod]; // expected-error{{no known method '-otherUnknownMethod'; cast the message send to…
25 …knownMethod]) { // expected-error{{no known method '-otherUnknownMethod'; cast the message send to…
27 …knownMethod]) { // expected-error{{no known method '-otherUnknownMethod'; cast the message send to…
H A Dattr-availability.m14 - (void)method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-n…
20 …_attribute__((availability(macosx,introduced=10.3))); // expected-note{{overridden method is here}}
23 …_attribute__((availability(macosx,deprecated=10.3))); // expected-note{{overridden method is here}}
25 …_attribute__((availability(macosx,introduced=10.3))); // expected-note{{overridden method is here}}
30 - (void)method; // NOTE: we expect 'method' to *not* inherit availability. method
32 …osx,introduced=10.4))); // expected-warning{{overriding method introduced after overridden method
35 …sx,deprecated=10.2))); // expected-warning{{overriding method deprecated before overridden method
37 …ailable))); // expected-warning{{overriding method cannot be unavailable on macOS when its overrid…
42 [a method]; // expected-warning{{'method' is deprecated: first deprecated in macOS 10.2}}
43 [b method]; // no-warning
[all …]
/llvm-project/clang/test/SemaObjCXX/
H A Dmessage.mm6 - (int*)method; method
10 - (int*)method { method
12 [x method]; // expected-error{{receiver type 'x' is not an Objective-C class}}
22 - (int*)method; method
23 + (void)method; class
35 - (int*)method { method
36 [ivar method];
39 [I2_holder().get() method];
40 [I2_holder().get() + 17 method];
43 + (void)method { class
[all …]
/llvm-project/clang/test/SemaCUDA/
H A Dmethod-target.cu10 void method() {} // dev-note {{'method' declared here}} in method() function
14 s.method(); // dev-error {{reference to __host__ function 'method' in __device__ function}} in foo1()
21 …void method(int) {} // expected-note {{candidate function not viable: call to __host__ function fr… in method() function
22 …void method(float) {} // expected-note {{candidate function not viable: call to __host__ function … in method() function
26 s.method(f); // expected-error {{no matching member function}} in foo2()
33 __device__ void method() {} // host-note {{'method' declared here}} in method() function
37 s.method(); // host-error {{reference to __device__ function 'method' in __host__ function}} in foo3()
44 __device__ void method() {} // host-note {{'method' declared here}} in method() function
48 …s.method(); // host-error {{reference to __device__ function 'method' in __host__ __device__ funct… in foo4()
67 void method() {} // dev-note {{'method' declared here}}; in method() function
[all …]
/llvm-project/mlir/include/mlir/Tools/lsp-server-support/
H A DTransport.h56 void notify(StringRef method, llvm::json::Value params);
57 void call(StringRef method, llvm::json::Value params, llvm::json::Value id);
121 bool onNotify(StringRef method, llvm::json::Value value);
122 bool onCall(StringRef method, llvm::json::Value params, llvm::json::Value id);
146 void method(llvm::StringLiteral method, ThisT *thisPtr, in method() function
148 methodHandlers[method] = [method, handler, in method()
151 llvm::Expected<Param> param = parse<Param>(rawParams, method, "request"); in method()
159 void notification(llvm::StringLiteral method, ThisT *thisPtr, in notification() argument
161 notificationHandlers[method] = [method, handler, in notification()
164 parse<Param>(rawParams, method, "notification"); in notification()
[all …]
/llvm-project/clang/test/Analysis/Checkers/WebKit/
H A Duncounted-local-vars.cpp23 bar.method(); in foo_ref()
46 bar->method(); in foo2()
73 bar->method(); in foo6()
83 bar.obj->method(); in foo7()
92 bar->method(); in evil_func()
99 bar->method(); in evil_func()
105 bar->method(); in func()
112 bar->method(); in foo1()
118 bar->method(); in foo1()
124 bar->method(); in foo2()
[all...]
/llvm-project/mlir/lib/Tools/lsp-server-support/
H A DTransport.cpp34 Reply(const llvm::json::Value &id, StringRef method, JSONTransport &transport,
44 std::string method; member in __anon1da44bf50111::Reply
52 Reply::Reply(const llvm::json::Value &id, llvm::StringRef method, in Reply() argument
54 : method(method), id(id), transport(&transport), in Reply()
58 : method(other.method), replied(other.replied.load()), in Reply()
66 Logger::error("Replied twice to message {0}({1})", method, id); in operator ()()
74 Logger::info("--> reply:{0}({1})", method, id); in operator ()()
78 Logger::info("--> reply:{0}({1}): {2}", method, i in operator ()()
87 onNotify(llvm::StringRef method,llvm::json::Value value) onNotify() argument
102 onCall(llvm::StringRef method,llvm::json::Value params,llvm::json::Value id) onCall() argument
177 notify(StringRef method,llvm::json::Value params) notify() argument
184 call(StringRef method,llvm::json::Value params,llvm::json::Value id) call() argument
252 std::optional<StringRef> method = object->getString("method"); handleMessage() local
[all...]
/llvm-project/clang-tools-extra/clangd/test/
H A Dexecute-command.test2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","l…
5 # CHECK: "method": "textDocument/publishDiagnostics",
30 {"jsonrpc":"2.0","id":3,"method":"workspace/executeCommand","params":{}}
33 {"jsonrpc":"2.0","id":4,"method":"workspace/executeCommand","params":{"command": {}}}
35 {"jsonrpc":"2.0","id":5,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
38 {"jsonrpc":"2.0","id":6,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
41 {"jsonrpc":"2.0","id":7,"method":"workspace/executeCommand","params":{"command":"mycommand"}}
44 {"jsonrpc":"2.0","id":8,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
47 {"jsonrpc":"2.0","id":9,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
[all …]
H A Dversion.test3 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}
5 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","l…
8 {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"test:///foo.c",…
11 {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"test:///foo.c"}…
14 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///bar.c","v…
17 {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"test:///bar.c"}…
20 {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"test:///bar.c",…
23 {"jsonrpc":"2.0","id":6,"method":"shutdown"}
25 {"jsonrpc":"2.0","method":"exit"}
/llvm-project/clang/test/Index/Core/
H A Dexternal-source-symbol-attr.m17 -(void)method; method
24 -(void)method; method
25 // CHECK: [[@LINE-1]]:8 | instance-method/Swift | method | c:@M@some_module@objc(cs)I2(im)method | …
27 // CHECK: [[@LINE-1]]:15 | instance-method/acc-get/Swift | prop | c:@M@some_module@objc(cs)I2(im)pr…
28 // CHECK: [[@LINE-2]]:15 | instance-method/acc-set/Swift | setProp: | c:@M@some_module@objc(cs)I2(i…
34 [o method];
35 // CHECK: [[@LINE-1]]:6 | instance-method/Swift | method | c:@M@some_module@objc(cs)I1(im)method |
46 // CHECK: [[@LINE-1]]:8 | instance-method/ObjC | cat_method | c:@M@some_module@objc(cs)I1(im)cat_me…
53 // CHECK: [[@LINE-1]]:8 | instance-method/Swift | cat_method2 | c:@CM@cat_module@some_module@objc(c…
55 // CHECK: [[@LINE-1]]:15 | instance-method/acc-get/Swift | cat_prop2 | c:@CM@cat_module@some_module…
[all …]
/llvm-project/llvm/bindings/ocaml/llvm/
H A Dllvm.mli452 See the method [llvm::LLVMContext::setDiagnosticHandler]. *)
519 [i686-apple-darwin8]. See the method [llvm::Module::getTargetTriple]. *)
523 the string [triple]. See the method [llvm::Module::setTargetTriple]. *)
528 method [llvm::Module::getDataLayout]. *)
532 to the string [s]. See the method [llvm::Module::setDataLayout]. *)
536 error. See the method [llvm::Module::dump]. *)
540 to file [f]. See the method [llvm::Module::print]. *)
544 as a string. See the method [llvm::Module::print]. *)
548 the method [llvm::Module::setModuleInlineAsm]. *)
552 See the method [llv
[all...]
/llvm-project/lldb/packages/Python/lldbsuite/test/
H A Dtest_result.py226 method = getattr(test, "markError", None)
227 if method:
228 method()
236 method = getattr(test, "markCleanupError", None)
237 if method:
238 method()
253 method = getattr(test, "markFailure", None)
254 if method:
255 method()
272 method = getattr(test, "markExpectedFailure", None)
[all …]

12345678910>>...41