/external/clang/test/CXX/expr/expr.post/expr.const.cast/ |
p1-0x.cpp | 3 // The result of the expression const_cast<T>(v) is of type T. If T is 16 int *&&ptr0 = const_cast<int *&&>(ptr); 17 int *&&ptr1 = const_cast<int *&&>(xvalue<const int*>()); 18 int *&&ptr2 = const_cast<int *&&>(prvalue<const int*>()); // expected-error {{const_cast from rvalue to reference type 'int *&&'}} 19 X &&ptr3 = const_cast<X&&>(x); 20 X &&ptr4 = const_cast<X&&>(xvalue<X>()); 21 X &&ptr5 = const_cast<X&&>(prvalue<X>()); 23 int *&ptr6 = const_cast<int *&>(ptr); 24 int *&ptr7 = const_cast<int *&>(xvalue<const int*>()); // expected-error {{const_cast from rvalue to reference type 'int * (…) [all...] |
/external/clang/test/SemaCXX/ |
const-cast.cpp | 25 char ***var2 = const_cast<cppp>(var); 28 char ***&var4 = const_cast<cpppr>(var3); 30 char *** var5 = const_cast<cppp>(var4); 33 int (&rar)[100] = const_cast<iarr>(ar); 35 int *pi = const_cast<int*>(ar); 38 f *fpp = const_cast<f*>(&fp); 40 int A::* A::* iapap = const_cast<int A::* A::*>(icapcap); 41 (void)const_cast<A&&>(A()); // expected-warning {{C++11}} 49 char **var2 = const_cast<char**>(var); // expected-error {{const_cast from 'const char *volatile *const volatile *' to 'char **' is not allowed} [all...] |
pr13353.cpp | 11 const_cast<foo *>(this->g())->bar();
|
address-space-conversion.cpp | 29 // Cannot use const_cast to cast between address spaces, add an 31 (void)const_cast<int_ptr>(ip1); // expected-error{{is not allowed}} 32 (void)const_cast<int_ptr>(ip2); // expected-error{{is not allowed}} 33 (void)const_cast<int_ptr_1>(ip); // expected-error{{is not allowed}} 34 (void)const_cast<int_ptr_1>(ip2); // expected-error{{is not allowed}} 35 (void)const_cast<int_ptr_2>(ip); // expected-error{{is not allowed}} 36 (void)const_cast<int_ptr_2>(ip1); // expected-error{{is not allowed}} 38 (void)const_cast<A_ptr>(ap1); // expected-error{{is not allowed}} 39 (void)const_cast<A_ptr>(ap2); // expected-error{{is not allowed}} 40 (void)const_cast<A_ptr_1>(ap); // expected-error{{is not allowed} [all...] |
/external/chromium_org/third_party/skia/src/image/ |
SkDataPixelRef.cpp | 17 this->setPreLocked(const_cast<void*>(fData->data()), NULL); 26 return const_cast<void*>(fData->data()); 45 this->setPreLocked(const_cast<void*>(fData->data()), NULL);
|
/external/skia/src/image/ |
SkDataPixelRef.cpp | 17 this->setPreLocked(const_cast<void*>(fData->data()), NULL); 26 return const_cast<void*>(fData->data()); 45 this->setPreLocked(const_cast<void*>(fData->data()), NULL);
|
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_DicTraverseSession.cpp | 56 const_cast<char *>("setDicTraverseSessionNative"), 57 const_cast<char *>("(Ljava/lang/String;J)J"), 61 const_cast<char *>("initDicTraverseSessionNative"), 62 const_cast<char *>("(JJ[II)V"), 66 const_cast<char *>("releaseDicTraverseSessionNative"), 67 const_cast<char *>("(J)V"),
|
com_android_inputmethod_latin_BinaryDictionary.cpp | 352 const_cast<char *>("createEmptyDictFileNative"), 353 const_cast<char *>("(Ljava/lang/String;J[Ljava/lang/String;[Ljava/lang/String;)Z"), 357 const_cast<char *>("openNative"), 358 const_cast<char *>("(Ljava/lang/String;JJZ)J"), 362 const_cast<char *>("closeNative"), 363 const_cast<char *>("(J)V"), 367 const_cast<char *>("flushNative"), 368 const_cast<char *>("(JLjava/lang/String;)V"), 372 const_cast<char *>("needsToRunGCNative"), 373 const_cast<char *>("(JZ)Z") [all...] |
com_android_inputmethod_keyboard_ProximityInfo.cpp | 48 const_cast<char *>("setProximityInfoNative"), 49 const_cast<char *>("(Ljava/lang/String;IIIIII[II[I[I[I[I[I[F[F[F)J"), 53 const_cast<char *>("releaseProximityInfoNative"), 54 const_cast<char *>("(J)V"),
|
/external/chromium_org/sandbox/win/src/ |
sid.cc | 12 ::CopySid(SECURITY_MAX_SID_SIZE, sid_, const_cast<SID*>(sid)); 23 return reinterpret_cast<SID*>(const_cast<BYTE*>(sid_));
|
/external/chromium_org/device/bluetooth/ |
bluetooth_adapter.cc | 21 const_cast<const BluetoothAdapter *>(this)->GetDevices(); 26 devices.push_back(const_cast<BluetoothDevice *>(*i)); 42 return const_cast<BluetoothDevice *>( 43 const_cast<const BluetoothAdapter *>(this)->GetDevice(address));
|
/external/clang/test/SemaObjCXX/ |
const-cast.mm | 12 Foo *foo2 = const_cast<Foo*>(foo1);
|
reserved-keyword-methods.mm | 9 macro(const_cast) \
|
/external/chromium_org/sync/syncable/ |
scoped_kernel_lock.cc | 13 : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
|
/art/runtime/mirror/ |
stack_trace_element.cc | 49 const_cast<String*>(declaring_class), false); 51 const_cast<String*>(method_name), false); 53 const_cast<String*>(file_name), false);
|
/external/chromium_org/ppapi/cpp/private/ |
platform_verification.cc | 51 const_cast<PP_Var*>(&signed_data->pp_var()), 52 const_cast<PP_Var*>(&signed_data_signature->pp_var()), 53 const_cast<PP_Var*>(&platform_key_certificate->pp_var()),
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/ |
streambuf.pass.cpp | 33 base::setg(const_cast<CharT*>(str_.data()), 34 const_cast<CharT*>(str_.data()), 35 const_cast<CharT*>(str_.data() + str_.size())); 51 base::setp(const_cast<CharT*>(str_.data()), 52 const_cast<CharT*>(str_.data() + str_.size()));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters/ |
streambuf.pass.cpp | 33 base::setg(const_cast<CharT*>(str_.data()), 34 const_cast<CharT*>(str_.data()), 35 const_cast<CharT*>(str_.data() + str_.size())); 51 base::setp(const_cast<CharT*>(str_.data()), 52 const_cast<CharT*>(str_.data() + str_.size()));
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
SharedBuffer.cpp | 43 free(const_cast<SharedBuffer*>(released)); 50 return const_cast<SharedBuffer*>(this); 63 SharedBuffer* buf = const_cast<SharedBuffer*>(this); 83 return const_cast<SharedBuffer*>(this); 108 free(const_cast<SharedBuffer*>(this));
|
/system/core/libutils/ |
SharedBuffer.cpp | 41 free(const_cast<SharedBuffer*>(released)); 48 return const_cast<SharedBuffer*>(this); 61 SharedBuffer* buf = const_cast<SharedBuffer*>(this); 81 return const_cast<SharedBuffer*>(this); 106 free(const_cast<SharedBuffer*>(this));
|
/hardware/samsung_slsi/exynos5/gralloc/ |
framebuffer.cpp | 250 dev->common.module = const_cast<hw_module_t*>(module); 260 const_cast<uint32_t&>(dev->flags) = 0; 261 const_cast<uint32_t&>(dev->width) = m->xres; 262 const_cast<uint32_t&>(dev->height) = m->yres; 263 const_cast<int&>(dev->stride) = stride; 264 const_cast<int&>(dev->format) = format; 265 const_cast<float&>(dev->xdpi) = m->xdpi; 266 const_cast<float&>(dev->ydpi) = m->ydpi; 267 const_cast<float&>(dev->fps) = m->fps; 268 const_cast<int&>(dev->minSwapInterval) = 1 [all...] |
/external/chromium_org/v8/src/ |
atomicops_internals_x86_macosx.h | 44 const_cast<Atomic32*>(ptr))) { 58 const_cast<Atomic32*>(ptr))); 64 return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr)); 69 return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr)); 82 const_cast<Atomic32*>(ptr))) { 135 const_cast<Atomic64*>(ptr))) { 149 const_cast<Atomic64*>(ptr))); 155 return OSAtomicAdd64(increment, const_cast<Atomic64*>(ptr)); 160 return OSAtomicAdd64Barrier(increment, const_cast<Atomic64*>(ptr)); 169 const_cast<Atomic64*>(ptr))) [all...] |
/external/v8/src/ |
atomicops_internals_x86_macosx.h | 44 const_cast<Atomic32*>(ptr))) { 58 const_cast<Atomic32*>(ptr))); 64 return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr)); 69 return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr)); 82 const_cast<Atomic32*>(ptr))) { 135 const_cast<Atomic64*>(ptr))) { 149 const_cast<Atomic64*>(ptr))); 155 return OSAtomicAdd64(increment, const_cast<Atomic64*>(ptr)); 160 return OSAtomicAdd64Barrier(increment, const_cast<Atomic64*>(ptr)); 169 const_cast<Atomic64*>(ptr))) [all...] |
/external/chromium_org/cloud_print/virtual_driver/win/port_monitor/ |
port_monitor_dll.cc | 81 // YUCK!!! I can either copy the constant, const_cast, or define my own 84 monitor_info.pDLLName = const_cast<LPWSTR>(dll_path.value().c_str()); 85 monitor_info.pName = const_cast<LPWSTR>(dll_path.value().c_str()); 100 const_cast<LPWSTR>(dll_path.value().c_str()))) {
|
/external/clang/include/clang/AST/ |
ParentMap.h | 44 return getParent(const_cast<Stmt*>(S)); 48 return getParentIgnoreParens(const_cast<Stmt*>(S)); 52 return getParentIgnoreParenCasts(const_cast<Stmt*>(S)); 62 return isConsumedExpr(const_cast<Expr*>(E));
|