Home
last modified time | relevance | path

Searched refs:Sub (Results 1 – 25 of 496) sorted by relevance

12345678910>>...20

/external/clang/test/SemaObjC/
Dwarn-superclass-method-mismatch.m7 @class Sub;
12 -(void) method2: (Sub*) x; // expected-note{{passing argument to parameter 'x' here}} argument
23 @interface Sub : Base interface
25 -(void) method1: (Sub*) x; // expected-warning {{method parameter type 'Sub *' does not match super… argument
27 + method3: (int)x1 : (Sub *)x2 : (float)x3; // expected-warning {{method parameter type 'Sub *' doe…
29 -(void) method_r: (char)ch : (float*)f1 : (Sub*) x; // expected-warning {{method parameter type 'Su… argument
34 void f(Base *base, Sub *sub) {
36 …[base method:&x]; // warn. if base is actually 'Sub' it will use -[Sub method] with wrong argumen…
39 [base method1:b]; // if base is actuall 'Sub' it will use [Sub method1] with wrong argument.
43 Sub *s;
[all …]
Dblock-type-safety.m5 @interface Sub : Super @end interface
12 void f3(void(^f)(Sub *)) {
13 Sub *o;
21 void r1(Sub* (^f)()) { // expected-note{{passing argument to parameter 'f' here}}
22 Sub *o = f();
33 f2(^(Sub *o) { }); // expected-error {{incompatible block pointer types passing}} category
34 f3(^(Super *o) { }); // OK, block taking Super* may be called with a Sub*
37 r0(^Sub* () { return 0; }); // OK, variable of type Super* gets return value of type Sub* category
41 r1(^Sub* () { return 0; }); // OK category
/external/mockito/src/test/java/org/mockitousage/puzzlers/
DBridgeMethodPuzzleTest.java33 private class Sub extends Super<String> { class in BridgeMethodPuzzleTest
42 Super s = new Sub(); in shouldHaveBridgeMethod()
46 Assertions.assertThat(Sub.class).has(bridgeMethod("say")); in shouldHaveBridgeMethod()
54 Sub s = mock(Sub.class); in shouldVerifyCorrectlyWhenBridgeMethodCalled()
65 Sub s = mock(Sub.class); in shouldVerifyCorrectlyWhenBridgeMethodVerified()
DOverloadingPuzzleTest.java27 private interface Sub extends Super { interface in OverloadingPuzzleTest
37 Sub sub = mock(Sub.class); in shouldUseArgumentTypeWhenOverloadingPuzzleDetected()
/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
DCloning.cpp55 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V); in TEST_F() local
59 BinaryOperator *SubClone = this->clone(Sub); in TEST_F()
72 Sub->setHasNoUnsignedWrap(); in TEST_F()
76 SubClone = this->clone(Sub); in TEST_F()
89 Sub->setHasNoSignedWrap(); in TEST_F()
93 SubClone = this->clone(Sub); in TEST_F()
106 Sub->setHasNoUnsignedWrap(false); in TEST_F()
110 SubClone = this->clone(Sub); in TEST_F()
/external/llvm/lib/Support/
DCommandLine.cpp126 for (const auto &Sub : RegisteredSubCommands) { in addLiteralOption() local
127 if (SC == Sub) in addLiteralOption()
129 addLiteralOption(Opt, Sub, Name); in addLiteralOption()
177 for (const auto &Sub : RegisteredSubCommands) { in addOption() local
178 if (SC == Sub) in addOption()
180 addOption(O, Sub); in addOption()
200 SubCommand &Sub = *SC; in removeOption() local
202 Sub.OptionsMap.erase(Name); in removeOption()
205 for (auto Opt = Sub.PositionalOpts.begin(); in removeOption()
206 Opt != Sub.PositionalOpts.end(); ++Opt) { in removeOption()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DCommandLine.cpp140 for (const auto &Sub : RegisteredSubCommands) { in addLiteralOption() local
141 if (SC == Sub) in addLiteralOption()
143 addLiteralOption(Opt, Sub, Name); in addLiteralOption()
191 for (const auto &Sub : RegisteredSubCommands) { in addOption() local
192 if (SC == Sub) in addOption()
194 addOption(O, Sub); in addOption()
214 SubCommand &Sub = *SC; in removeOption() local
216 Sub.OptionsMap.erase(Name); in removeOption()
219 for (auto Opt = Sub.PositionalOpts.begin(); in removeOption()
220 Opt != Sub.PositionalOpts.end(); ++Opt) { in removeOption()
[all …]
/external/clang/test/SemaCXX/
Dpragma-pack.cpp11 struct Sub : public Base { struct
16 int check[sizeof(Sub) == 5 ? 1 : -1];
28 struct Sub : virtual Base { struct
33 int check[sizeof(Sub) == 13 ? 1 : -1];
/external/mockito/src/test/java/org/mockitousage/bugs/
DDiamondInheritanceIsConfusingMockitoTest.java12 Sub mock = Mockito.mock(Sub.class); in should_work()
32 public class Sub class in DiamondInheritanceIsConfusingMockitoTest
36 public Sub(String s) { in Sub() method in DiamondInheritanceIsConfusingMockitoTest.Sub
DConfusedSignatureTest.java13 Sub mock = mock(Sub.class); in should_mock_method_which_has_generic_return_type_in_superclass_and_concrete_one_in_interface()
33 public class Sub class in ConfusedSignatureTest
37 public Sub(String s) { in Sub() method in ConfusedSignatureTest.Sub
/external/guice/core/test/com/google/inject/
DSuperclassTest.java33 Provider<Sub> creator = injector.getProvider(Sub.class); in testSuperclassInjection()
34 Sub sub = creator.get(); in testSuperclassInjection()
52 static class Sub extends Super { class in SuperclassTest
/external/clang/test/Rewriter/
Dobjc-modern-class-init.mm10 @interface Sub : Super interface
13 @implementation Sub @end implementation
19 @interface Sub(Cat) @end interface in Cat
23 @implementation Sub(Cat) @end implementation in Cat
Dobjc-modern-class-init-hooks.mm10 @interface Sub : Super interface
13 @implementation Sub @end implementation
19 @interface Sub(Cat) @end interface in Cat
23 @implementation Sub(Cat) @end implementation in Cat
/external/llvm/lib/Target/Hexagon/
DHexagonExpandCondsets.cpp217 Sub(Op.getSubReg()) {} in RegisterRef()
218 RegisterRef(unsigned R = 0, unsigned S = 0) : Reg(R), Sub(S) {} in RegisterRef()
220 return Reg == RR.Reg && Sub == RR.Sub; in operator ==()
224 return Reg < RR.Reg || (Reg == RR.Reg && Sub < RR.Sub); in operator <()
226 unsigned Reg, Sub; member
232 unsigned getMaskForSub(unsigned Sub);
234 LaneBitmask getLaneMask(unsigned Reg, unsigned Sub);
289 unsigned HexagonExpandCondsets::getMaskForSub(unsigned Sub) { in INITIALIZE_PASS_DEPENDENCY()
290 switch (Sub) { in INITIALIZE_PASS_DEPENDENCY()
316 LaneBitmask HexagonExpandCondsets::getLaneMask(unsigned Reg, unsigned Sub) { in getLaneMask() argument
[all …]
DHexagonBitSimplify.cpp367 assert(RR.Sub == 0); in getSubregMask()
373 if (RR.Sub == 0) { in getSubregMask()
378 assert(RR.Sub == Hexagon::subreg_loreg || RR.Sub == Hexagon::subreg_hireg); in getSubregMask()
380 Begin = (RR.Sub == Hexagon::subreg_loreg ? 0 : 32); in getSubregMask()
854 if (RR.Sub == 0) in getFinalVRegClass()
857 auto VerifySR = [] (unsigned Sub) -> void { in getFinalVRegClass() argument
858 assert(Sub == Hexagon::subreg_hireg || Sub == Hexagon::subreg_loreg); in getFinalVRegClass()
863 VerifySR(RR.Sub); in getFinalVRegClass()
866 VerifySR(RR.Sub); in getFinalVRegClass()
869 VerifySR(RR.Sub); in getFinalVRegClass()
[all …]
/external/clang/test/CodeGenCXX/
Dpragma-pack.cpp9 struct Sub : virtual Base { struct
14 void f(Sub*) { } in f() argument
16 static int i[sizeof(Sub) == 13 ? 1 : -1];
/external/llvm/lib/MC/MCDisassembler/
DMCExternalSymbolizer.cpp101 const MCExpr *Sub = nullptr; in tryAddingSymbolicOperand() local
106 Sub = MCSymbolRefExpr::create(Sym, Ctx); in tryAddingSymbolicOperand()
108 Sub = MCConstantExpr::create((int)SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand()
117 if (Sub) { in tryAddingSymbolicOperand()
120 LHS = MCBinaryExpr::createSub(Add, Sub, Ctx); in tryAddingSymbolicOperand()
122 LHS = MCUnaryExpr::createMinus(Sub, Ctx); in tryAddingSymbolicOperand()
/external/clang/test/Index/Inputs/
Dt2.m4 Sub *sub;
7 [Sub my_method:x];
10 @implementation Sub implementation
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DReassociate.cpp470 static bool ShouldBreakUpSubtract(Instruction *Sub) { in ShouldBreakUpSubtract() argument
472 if (BinaryOperator::isNeg(Sub)) in ShouldBreakUpSubtract()
477 if (isReassociableOp(Sub->getOperand(0), Instruction::Add) || in ShouldBreakUpSubtract()
478 isReassociableOp(Sub->getOperand(0), Instruction::Sub)) in ShouldBreakUpSubtract()
480 if (isReassociableOp(Sub->getOperand(1), Instruction::Add) || in ShouldBreakUpSubtract()
481 isReassociableOp(Sub->getOperand(1), Instruction::Sub)) in ShouldBreakUpSubtract()
483 if (Sub->hasOneUse() && in ShouldBreakUpSubtract()
484 (isReassociableOp(Sub->use_back(), Instruction::Add) || in ShouldBreakUpSubtract()
485 isReassociableOp(Sub->use_back(), Instruction::Sub))) in ShouldBreakUpSubtract()
494 static Instruction *BreakUpSubtract(Instruction *Sub, in BreakUpSubtract() argument
[all …]
/external/clang/test/Index/Core/
Dindex-source.m32 // CHECK: [[@LINE+7]]:12 | class/ObjC | Sub | c:objc(cs)Sub | _OBJC_CLASS_$_Sub | Decl | rel: 0
34 // CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
36 // CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
38 // CHECK-NEXT: RelBase | Sub | c:objc(cs)Sub
39 @interface Sub : Base<Prot2, Prot1> interface
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp64 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V); in TEST_F() local
68 BinaryOperator *SubClone = this->clone(Sub); in TEST_F()
81 Sub->setHasNoUnsignedWrap(); in TEST_F()
85 SubClone = this->clone(Sub); in TEST_F()
98 Sub->setHasNoSignedWrap(); in TEST_F()
102 SubClone = this->clone(Sub); in TEST_F()
115 Sub->setHasNoUnsignedWrap(false); in TEST_F()
119 SubClone = this->clone(Sub); in TEST_F()
306 auto *Sub = cast<DISubprogram>(*Iter); in TEST_F() local
308 EXPECT_TRUE(Sub == OldFunc->getSubprogram()); in TEST_F()
[all …]
/external/llvm/lib/Target/AArch64/Disassembler/
DAArch64ExternalSymbolizer.cpp181 const MCExpr *Sub = nullptr; in tryAddingSymbolicOperand() local
186 Sub = MCSymbolRefExpr::create(Sym, Ctx); in tryAddingSymbolicOperand()
188 Sub = MCConstantExpr::create(SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand()
197 if (Sub) { in tryAddingSymbolicOperand()
200 LHS = MCBinaryExpr::createSub(Add, Sub, Ctx); in tryAddingSymbolicOperand()
202 LHS = MCUnaryExpr::createMinus(Sub, Ctx); in tryAddingSymbolicOperand()
/external/vixl/test/aarch32/
Dtest-disasm-a32.cc1528 COMPARE_A32(Sub(r0, r1, -1), "add r0, r1, #1\n"); in TEST()
1531 COMPARE_T32(Sub(r0, r1, -1), "sub r0, r1, #4294967295\n"); in TEST()
1534 COMPARE_BOTH(Sub(r0, r1, -4), "add r0, r1, #4\n"); in TEST()
2398 COMPARE_A32(Sub(r0, pc, 8), "adr r0, 0x00000000\n"); in TEST()
2399 COMPARE_A32(Sub(r0, pc, -255), "adr r0, 0x00000107\n"); in TEST()
2400 COMPARE_A32(Sub(r0, pc, -256), "adr r0, 0x00000108\n"); in TEST()
2401 COMPARE_A32(Sub(r0, pc, -1024), "adr r0, 0x00000408\n"); in TEST()
2402 COMPARE_A32(Sub(r0, pc, 9), "adr r0, 0xffffffff\n"); in TEST()
2403 COMPARE_A32(Sub(r0, pc, 1024), "adr r0, 0xfffffc08\n"); in TEST()
2404 COMPARE_A32(Sub(r0, pc, UINT32_C(0x80000000)), "adr r0, 0x80000008\n"); in TEST()
[all …]
/external/v8/src/regexp/arm64/
Dregexp-macro-assembler-arm64.cc293 __ Sub(capture_length, w11, capture_start_offset); // Length to check. in CheckNotBackReferenceIgnoreCase() local
330 __ Sub(current_position_address, current_position_address, in CheckNotBackReferenceIgnoreCase() local
346 __ Sub(w10, w10, 'a'); in CheckNotBackReferenceIgnoreCase() local
350 __ Sub(w10, w10, 224 - 'a'); in CheckNotBackReferenceIgnoreCase() local
365 __ Sub(current_input_offset().X(), current_position_address, input_end()); in CheckNotBackReferenceIgnoreCase() local
367 __ Sub(current_input_offset().X(), current_input_offset().X(), in CheckNotBackReferenceIgnoreCase() local
399 __ Sub(x1, x1, Operand(capture_length, SXTW)); in CheckNotBackReferenceIgnoreCase() local
427 __ Sub(current_input_offset(), current_input_offset(), capture_length); in CheckNotBackReferenceIgnoreCase() local
454 __ Sub(capture_length, w11, w10); // Length to check. in CheckNotBackReference() local
481 __ Sub(current_position_address, current_position_address, in CheckNotBackReference() local
[all …]
/external/llvm/examples/Fibonacci/
Dfibonacci.cpp84 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction() local
85 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB); in CreateFibFunction()
89 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction()
90 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB); in CreateFibFunction()

12345678910>>...20