/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 | 27 char ***var2 = const_cast<cppp>(var); 30 char ***&var4 = const_cast<cpppr>(var3); 32 char *** var5 = const_cast<cppp>(var4); 35 int (&rar)[100] = const_cast<iarr>(ar); 37 int *pi = const_cast<int*>(ar); 40 f *fpp = const_cast<f*>(&fp); 42 int A::* A::* iapap = const_cast<int A::* A::*>(icapcap); 43 (void)const_cast<A&&>(A()); 53 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...] |
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_DicTraverseSession.cpp | 60 const_cast<char *>("setDicTraverseSessionNative"), 61 const_cast<char *>("(Ljava/lang/String;J)J"), 65 const_cast<char *>("initDicTraverseSessionNative"), 66 const_cast<char *>("(JJ[II)V"), 70 const_cast<char *>("releaseDicTraverseSessionNative"), 71 const_cast<char *>("(J)V"),
|
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 84 const_cast<char *>("createEmptyDictFileNative"), 85 const_cast<char *>( 90 const_cast<char *>("calcNormalizedScoreNative"), 91 const_cast<char *>("([I[II)F"), 95 const_cast<char *>("setCurrentTimeForTestNative"), 96 const_cast<char *>("(I)I"),
|
com_android_inputmethod_keyboard_ProximityInfo.cpp | 48 const_cast<char *>("setProximityInfoNative"), 49 const_cast<char *>("(IIIIII[II[I[I[I[I[I[F[F[F)J"), 53 const_cast<char *>("releaseProximityInfoNative"), 54 const_cast<char *>("(J)V"),
|
com_android_inputmethod_latin_BinaryDictionary.cpp | 621 const_cast<char *>("openNative"), 622 const_cast<char *>("(Ljava/lang/String;JJZ)J"), 626 const_cast<char *>("createOnMemoryNative"), 627 const_cast<char *>("(JLjava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)J"), 631 const_cast<char *>("closeNative"), 632 const_cast<char *>("(J)V"), 636 const_cast<char *>("getFormatVersionNative"), 637 const_cast<char *>("(J)I"), 641 const_cast<char *>("getHeaderInfoNative"), 642 const_cast<char *>("(J[I[ILjava/util/ArrayList;Ljava/util/ArrayList;)V") [all...] |
/external/clang/test/SemaObjCXX/ |
const-cast.mm | 12 Foo *foo2 = const_cast<Foo*>(foo1);
|
reserved-keyword-methods.mm | 9 macro(const_cast) \
|
/external/v8/src/ast/ |
modules.cc | 17 void* key = const_cast<AstRawString*>(export_name); 36 p->value = const_cast<AstRawString*>(local_name); 53 const_cast<AstRawString*>(export_name), export_name->hash());
|
/external/libcxx/test/std/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()));
|
/external/libcxx/test/std/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()));
|
/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()));
|
/external/webrtc/webrtc/libjingle/xmllite/ |
xmlelement.h | 134 { return const_cast<XmlElement *>(this)->FirstAttr(); } 147 return const_cast<XmlElement *>(this)->FirstChild(); 152 return const_cast<XmlElement *>(this)->FirstElement(); 157 return const_cast<XmlElement *>(this)->NextElement(); 162 return const_cast<XmlElement *>(this)->FirstWithNamespace(ns); 167 return const_cast<XmlElement *>(this)->NextWithNamespace(ns); 172 return const_cast<XmlElement *>(this)->FirstNamed(name); 177 return const_cast<XmlElement *>(this)->FirstNamed(name); 182 return const_cast<XmlElement *>(this)->NextNamed(name); 187 return const_cast<XmlElement *>(this)->NextNamed(name) [all...] |
/hardware/libhardware/tests/camera3/ |
camera3tests.cpp | 38 const_cast<camera_metadata_t*>( 46 const_cast<camera_metadata_t*>( 66 const_cast<camera_metadata_t*>(default_settings),
|
/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));
|
/hardware/qcom/media/msm8974/libstagefrighthw/ |
QComOMXPlugin.cpp | 81 const_cast<char *>(name), 82 appData, const_cast<OMX_CALLBACKTYPE *>(callbacks)); 116 const_cast<OMX_STRING>(name), &numRoles, NULL); 130 const_cast<OMX_STRING>(name), &numRoles2, array);
|
/hardware/qcom/media/msm8996/libstagefrighthw/ |
QComOMXPlugin.cpp | 81 const_cast<char *>(name), 82 appData, const_cast<OMX_CALLBACKTYPE *>(callbacks)); 116 const_cast<OMX_STRING>(name), &numRoles, NULL); 130 const_cast<OMX_STRING>(name), &numRoles2, array);
|
/hardware/ti/omap3/libstagefrighthw/ |
TIOMXPlugin.cpp | 75 const_cast<char *>(name), 76 appData, const_cast<OMX_CALLBACKTYPE *>(callbacks)); 110 const_cast<OMX_STRING>(name), &numRoles, NULL); 124 const_cast<OMX_STRING>(name), &numRoles2, array);
|
/hardware/ti/omap4-aah/libstagefrighthw/ |
TIOMXPlugin.cpp | 83 const_cast<char *>(name), 84 appData, const_cast<OMX_CALLBACKTYPE *>(callbacks)); 119 const_cast<OMX_STRING>(name), &numRoles, NULL); 132 const_cast<OMX_STRING>(name), &numRoles, array);
|
/hardware/ti/omap4xxx/libstagefrighthw/ |
TIOMXPlugin.cpp | 83 const_cast<char *>(name), 84 appData, const_cast<OMX_CALLBACKTYPE *>(callbacks)); 119 const_cast<OMX_STRING>(name), &numRoles, NULL); 132 const_cast<OMX_STRING>(name), &numRoles, array);
|
/external/skia/src/core/ |
SkLocalMatrixShader.cpp | 52 return SkRef(const_cast<SkShader*>(this)); 57 SkShader* baseShader = const_cast<SkShader*>(this);
|
/external/webrtc/talk/session/media/ |
externalhmac.cc | 63 const_cast<uint8_t*>(kExternalHmacTestCase0Key), // Key 65 const_cast<uint8_t*>(kExternalHmacTestCase0Data), // Data 67 const_cast<uint8_t*>(kExternalHmacFakeTag), // Tag 84 const_cast<char*>(kExternalHmacDescription), 86 const_cast<auth_test_case_t*>(&kExternalHmacTestCase0), 114 (*a)->type = const_cast<auth_type_t*>(&external_hmac); 165 // |external_hmac| is const. const_cast is required as libsrtp expects 168 const_cast<auth_type_t*>(&external_hmac), EXTERNAL_HMAC_SHA1);
|