/external/clang/test/Index/Inputs/ |
preamble_macro_template.h | 1 #define STATIC_CAST static_cast 5 (void)STATIC_CAST<T*>(0);
|
/external/clang/test/CXX/expr/expr.post/expr.static.cast/ |
p9-0x.cpp | 6 (void)static_cast<bool>(ec); 7 (void)static_cast<bool>(EC::ec1); 8 (void)static_cast<char>(ec); 9 (void)static_cast<char>(EC::ec1); 10 (void)static_cast<int>(ec); 11 (void)static_cast<int>(EC::ec1); 12 (void)static_cast<unsigned long>(ec); 13 (void)static_cast<unsigned long>(EC::ec1); 14 (void)static_cast<float>(ec); 15 (void)static_cast<float>(EC::ec1) [all...] |
p3-0x.cpp | 12 A &&ar0 = static_cast<A&&>(a); 13 A &&ar1 = static_cast<A&&>(b); 14 A &&ar2 = static_cast<A&&>(lvalue<A>()); 15 A &&ar3 = static_cast<A&&>(lvalue<B>()); 16 A &&ar4 = static_cast<A&&>(xvalue<A>()); 17 A &&ar5 = static_cast<A&&>(xvalue<B>()); 18 const A &&ar6 = static_cast<const A&&>(a); 19 const A &&ar7 = static_cast<const A&&>(b); 20 const A &&ar8 = static_cast<const A&&>(lvalue<A>()); 21 const A &&ar9 = static_cast<const A&&>(lvalue<B>()) [all...] |
/external/clang/test/SemaCXX/ |
static-cast.cpp | 25 (void)static_cast<float>(i); 27 (void)static_cast<float>(d); 28 (void)static_cast<int>(d); 29 (void)static_cast<char>(i); 30 (void)static_cast<unsigned long>(i); 31 (void)static_cast<int>(En1); 32 (void)static_cast<double>(En1); 33 (void)static_cast<int&>(i); 34 (void)static_cast<const int&>(i); 37 (void)static_cast<const int*>(ar) [all...] |
static-cast-complete-type.cpp | 9 S<int> s0 = static_cast<S<int> >(0); 10 S<void*> s1 = static_cast<S<void*> >(00); 12 (void)static_cast<T>(10); // expected-error{{'T' is an incomplete type}}
|
addr-of-overloaded-function-casting.cpp | 20 { bool b = static_cast<void (&)(char)>(f); } // expected-error{{does not match}} 21 { bool b = static_cast<void (*)(char)>(f); } // expected-error{{address of overloaded function}} 23 { bool b = static_cast<void (&)(int)>(f); } //ok 24 { bool b = static_cast<void (*)(int)>(f); } //ok 31 { bool b = static_cast<void (*)(char)>(g); } // expected-error{{not allowed}} 42 { bool b = static_cast<void (&)(char)>(t); } //ok 43 { bool b = static_cast<void (*)(char)>(t); } //ok 45 { bool b = static_cast<void (&)(int)>(t); } //ok 46 { bool b = static_cast<void (*)(int)>(t); } //ok 53 { bool b = static_cast<int (*)(char)>(t); } // expected-error{{cannot be static_cast} [all...] |
address-space-conversion.cpp | 54 (void)static_cast<A_ptr>(bp); 55 (void)static_cast<A_ptr_1>(bp1); 56 (void)static_cast<A_ptr_2>(bp2); 59 (void)static_cast<B_ptr>(ap); 60 (void)static_cast<B_ptr_1>(ap1); 61 (void)static_cast<B_ptr_2>(ap2); 64 (void)static_cast<void_ptr>(ap); 65 (void)static_cast<void_ptr_1>(ap1); 66 (void)static_cast<void_ptr_2>(ap2); 67 (void)static_cast<A_ptr>(vp) [all...] |
access-member-pointer.cpp | 7 (void)static_cast<void(A::*)()>(&B::foo); 10 (void)static_cast<void(A::*)()>(&B::foo); // expected-error {{cannot cast 'B' to its private base class 'A'}}
|
/external/chromium/third_party/libjingle/source/talk/base/ |
byteorder.h | 50 static_cast<uint8*>(memory)[offset] = v; 53 return static_cast<const uint8*>(memory)[offset]; 57 Set8(memory, 0, static_cast<uint8>(v >> 8)); 58 Set8(memory, 1, static_cast<uint8>(v >> 0)); 61 Set8(memory, 0, static_cast<uint8>(v >> 24)); 62 Set8(memory, 1, static_cast<uint8>(v >> 16)); 63 Set8(memory, 2, static_cast<uint8>(v >> 8)); 64 Set8(memory, 3, static_cast<uint8>(v >> 0)); 67 Set8(memory, 0, static_cast<uint8>(v >> 56)); 68 Set8(memory, 1, static_cast<uint8>(v >> 48)) [all...] |
macconversion.cc | 75 converted = CFNumberGetValue(cfn, ntype, static_cast<void*>(&sint8)); 76 if (converted) *i = static_cast<int>(sint8); 80 converted = CFNumberGetValue(cfn, ntype, static_cast<void*>(&sint16)); 81 if (converted) *i = static_cast<int>(sint16); 85 converted = CFNumberGetValue(cfn, ntype, static_cast<void*>(&sint32)); 86 if (converted) *i = static_cast<int>(sint32); 90 converted = CFNumberGetValue(cfn, ntype, static_cast<void*>(&sint64)); 91 if (converted) *i = static_cast<int>(sint64); 96 static_cast<void*>(&float32)); 97 if (converted) *i = static_cast<int>(float32) [all...] |
common.h | 43 #define UNUSED(x) Unused(static_cast<const void *>(&x)) 44 #define UNUSED2(x,y) Unused(static_cast<const void *>(&x)); Unused(static_cast<const void *>(&y)) 45 #define UNUSED3(x,y,z) Unused(static_cast<const void *>(&x)); Unused(static_cast<const void *>(&y)); Unused(static_cast<const void *>(&z)) 46 #define UNUSED4(x,y,z,a) Unused(static_cast<const void *>(&x)); Unused(static_cast<const void *>(&y)); Unused(static_cast<const void *>(&z)); Unused(static_cast<const void *>(&a) [all...] |
/external/webkit/Source/WebCore/bindings/v8/custom/ |
V8SVGElementCustom.cpp | 4 * Redistribution and use in source and binary forms") return toV8(static_cast<SVGwith or without 5 * modification") return toV8(static_cast<SVGare permitted provided that the following conditions are 9 * notice") return toV8(static_cast<SVGthis list of conditions and the following disclaimer. 11 * copyright notice") return toV8(static_cast<SVGthis list of conditions and the following disclaimer 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES") return toV8(static_cast<SVGINCLUDING") return toV8(static_cast<SVGBUT NOT 20 * LIMITED TO") return toV8(static_cast<SVGTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT") return toV8(static_cast<SVGINDIRECT") return toV8(static_cast<SVGINCIDENTAL, 23 * SPECIAL") return toV8(static_cast<SVGEXEMPLARY") return toV8(static_cast<SVGOR CONSEQUENTIAL DAMAGES (INCLUDING") return toV8(static (…) [all...] |
V8EventCustom.cpp | 89 return toV8(static_cast<MouseEvent*>(event)->clipboard()); 99 return toV8(static_cast<ClipboardEvent*>(event)->clipboard()); 110 return toV8(static_cast<KeyboardEvent*>(impl)); 112 return toV8(static_cast<TextEvent*>(impl)); 114 return toV8(static_cast<MouseEvent*>(impl)); 116 return toV8(static_cast<WheelEvent*>(impl)); 119 return toV8(static_cast<SVGZoomEvent*>(impl)); 122 return toV8(static_cast<CompositionEvent*>(impl)); 125 return toV8(static_cast<TouchEvent*>(impl)); 127 return toV8(static_cast<UIEvent*>(impl)) [all...] |
V8SVGPathSegCustom.cpp | 66 return toV8(static_cast<SVGPathSegClosePath*>(impl)); 68 return toV8(static_cast<SVGPathSegMovetoAbs*>(impl)); 70 return toV8(static_cast<SVGPathSegMovetoRel*>(impl)); 72 return toV8(static_cast<SVGPathSegLinetoAbs*>(impl)); 74 return toV8(static_cast<SVGPathSegLinetoRel*>(impl)); 76 return toV8(static_cast<SVGPathSegCurvetoCubicAbs*>(impl)); 78 return toV8(static_cast<SVGPathSegCurvetoCubicRel*>(impl)); 80 return toV8(static_cast<SVGPathSegCurvetoQuadraticAbs*>(impl)); 82 return toV8(static_cast<SVGPathSegCurvetoQuadraticRel*>(impl)); 84 return toV8(static_cast<SVGPathSegArcAbs*>(impl)) [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
searchutility.cpp | 36 if ((static_cast<const LmaPsbItem*>(p1))->psb > 37 (static_cast<const LmaPsbItem*>(p2))->psb) 39 if ((static_cast<const LmaPsbItem*>(p1))->psb < 40 (static_cast<const LmaPsbItem*>(p2))->psb) 46 const LmaPsbItem *item1 = static_cast<const LmaPsbItem*>(p1); 47 const LmaPsbItem *item2 = static_cast<const LmaPsbItem*>(p2); 64 if ((static_cast<const LmaPsbItem*>(p1))->id < 65 (static_cast<const LmaPsbItem*>(p2))->id) 67 if ((static_cast<const LmaPsbItem*>(p1))->id > 68 (static_cast<const LmaPsbItem*>(p2))->id [all...] |
/frameworks/base/native/android/ |
input.cpp | 39 return static_cast<const InputEvent*>(event)->getType(); 43 return static_cast<const InputEvent*>(event)->getDeviceId(); 47 return static_cast<const InputEvent*>(event)->getSource(); 51 return static_cast<const KeyEvent*>(key_event)->getAction(); 55 return static_cast<const KeyEvent*>(key_event)->getFlags(); 59 return static_cast<const KeyEvent*>(key_event)->getKeyCode(); 63 return static_cast<const KeyEvent*>(key_event)->getScanCode(); 67 return static_cast<const KeyEvent*>(key_event)->getMetaState(); 70 return static_cast<const KeyEvent*>(key_event)->getRepeatCount(); 74 return static_cast<const KeyEvent*>(key_event)->getDownTime() [all...] |
sensor.cpp | 50 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); 59 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); 66 static_cast<SensorManager*>(manager)->createEventQueue(); 72 return static_cast<ASensorEventQueue*>(queue.get()); 78 sp<SensorEventQueue> queue = static_cast<SensorEventQueue*>(inQueue); 88 return static_cast<SensorEventQueue*>(queue)->enableSensor( 89 static_cast<Sensor const*>(sensor)); 94 return static_cast<SensorEventQueue*>(queue)->disableSensor( 95 static_cast<Sensor const*>(sensor)); 101 return static_cast<SensorEventQueue*>(queue)->setEventRate [all...] |
/cts/apps/CtsVerifier/include/colorchecker/ |
vec3.h | 53 Vec3<float> temp(mRed * static_cast<U>(param.r()), 54 mGreen * static_cast<U>(param.g()), 55 mBlue * static_cast<U>(param.b())); 63 temp.set(static_cast<float>(mRed) / static_cast<float>(param), 64 static_cast<float>(mGreen) / static_cast<float>(param), 65 static_cast<float>(mBlue) / static_cast<float>(param)); 73 temp.set(static_cast<float>(mRed) / static_cast<float>(param.r()) [all...] |
vec2.h | 46 temp.set(static_cast<float>(mX) / static_cast<float>(param), 47 static_cast<float>(mY) / static_cast<float>(param)); 55 difference = (static_cast<float>(mX) - static_cast<float>(param.x())) * 56 (static_cast<float>(mX) - static_cast<float>(param.x())) + 57 (static_cast<float>(mY) - static_cast<float>(param.y())) [all...] |
/frameworks/av/media/libmedia/ |
IAudioPolicyService.cpp | 75 data.writeInt32(static_cast <uint32_t>(device)); 76 data.writeInt32(static_cast <uint32_t>(state)); 79 return static_cast <status_t> (reply.readInt32()); 88 data.writeInt32(static_cast <uint32_t>(device)); 91 return static_cast <audio_policy_dev_state_t>(reply.readInt32()); 100 return static_cast <status_t> (reply.readInt32()); 107 data.writeInt32(static_cast <uint32_t>(usage)); 108 data.writeInt32(static_cast <uint32_t>(config)); 110 return static_cast <status_t> (reply.readInt32()); 117 data.writeInt32(static_cast <uint32_t>(usage)) [all...] |
/external/webkit/Source/WebCore/bindings/scripts/test/JS/ |
JSTestObj.cpp | 60 { "readOnlyIntAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyIntAttr), (intptr_t)0 THUNK_GENERATOR(0) }, 61 { "readOnlyStringAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyStringAttr), (intptr_t)0 THUNK_GENERATOR(0) }, 62 { "readOnlyTestObjAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyTestObjAttr), (intptr_t)0 THUNK_GENERATOR(0) }, 63 { "shortAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjShortAttr), (intptr_t)setJSTestObjShortAttr THUNK_GENERATOR(0) }, 64 { "unsignedShortAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjUnsignedShortAttr), (intptr_t)setJSTestObjUnsignedShortAttr THUNK_GENERATOR(0) }, 65 { "intAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjIntAttr), (intptr_t)setJSTestObjIntAttr THUNK_GENERATOR(0) }, 66 { "longLongAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjLongLongAttr), (intptr_t)setJSTestObjLongLongAttr THUNK_GENERATOR(0) }, 67 { "unsignedLongLongAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjUnsignedLongLongAttr), (intptr_t)setJSTestObjUnsignedLongLongAttr THUNK_GENERATOR(0) }, 68 { "stringAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjStringAttr), (intptr_t)setJSTestObjStringAttr THUNK_GENERATOR(0) }, 69 { "testObjAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjTestObjAttr), (intptr_t)setJSTestObjTestObjAttr THUNK_GENERAT (…) [all...] |
/external/chromium/base/i18n/ |
break_iterator.cc | 26 ubrk_close(static_cast<UBreakIterator*>(iter_)); 45 string_->data(), static_cast<int32_t>(string_->size()), 52 ubrk_first(static_cast<UBreakIterator*>(iter_)); 63 pos = ubrk_next(static_cast<UBreakIterator*>(iter_)); 68 pos_ = static_cast<size_t>(pos); 72 pos = ubrk_next(static_cast<UBreakIterator*>(iter_)); 76 pos_ = static_cast<size_t>(pos); 77 status = ubrk_getRuleStatus(static_cast<UBreakIterator*>(iter_)); 92 ubrk_getRuleStatus(static_cast<UBreakIterator*>(iter_)) !=
|
/external/chromium/chrome/common/ |
guid_posix.cc | 21 static_cast<unsigned int>(bytes[0] >> 32), 22 static_cast<unsigned int>((bytes[0] >> 16) & 0x0000ffff), 23 static_cast<unsigned int>(bytes[0] & 0x0000ffff), 24 static_cast<unsigned int>(bytes[1] >> 48),
|
/external/webkit/Source/WebCore/svg/ |
SVGMatrix.h | 47 return static_cast<SVGMatrix>(copy); 54 return static_cast<SVGMatrix>(copy); 61 return static_cast<SVGMatrix>(copy); 68 return static_cast<SVGMatrix>(copy); 75 return static_cast<SVGMatrix>(copy); 82 return static_cast<SVGMatrix>(copy); 89 return static_cast<SVGMatrix>(copy); 96 return static_cast<SVGMatrix>(copy); 102 copy *= static_cast<const AffineTransform&>(other); 103 return static_cast<SVGMatrix>(copy) [all...] |
/external/clang/test/CXX/class/class.bit/ |
p2.cpp | 19 B b3(static_cast<B&&>(b2)); 21 b = static_cast<B&&>(b);
|