Home | History | Annotate | Download | only in Sema

Lines Matching full:const_cast

40   CT_Const,       ///< const_cast
721 /// CheckConstCast - Check that a const_cast\<DestType\>(SrcExpr) is valid.
722 /// Refer to C++ 5.2.11 for details. const_cast is typically used in code
725 /// legacy_function(const_cast\<char*\>(str));
1001 // In the CStyle case, the earlier attempt to const_cast should have taken
1541 /// TryConstCast - See if a const_cast from source to destination is allowed,
1553 // T2" using a const_cast, then the following conversions can also be
1556 // type T2 using the cast const_cast<T2&>;
1558 // type T2 using the cast const_cast<T2&&>; and
1560 // converted to an xvalue of type T2 using the cast const_cast<T2&&>.
1563 // Cannot const_cast non-lvalue to lvalue reference type. But if this
1572 // Cannot const_cast non-class prvalue to rvalue reference type. But if
1578 // Materialize the class prvalue so that the const_cast can bind a
1584 // const_cast bit-field gl-values. Doing so would not be
1597 // C++ 5.2.11p5: For a const_cast involving pointers to data members [...]
1598 // the rules for const_cast are the same as those used for pointers.
1625 // C++ 5.2.11p3 describes the core semantics of const_cast. All cv specifiers
1634 // const_cast is permitted to strip cvr-qualifiers, only. Make sure that
1647 // This is a const_cast from a class prvalue to an rvalue reference type.
1784 // similar comment in const_cast.
1839 // A reinterpret_cast followed by a const_cast can, though, so in C-style,
2112 // - a const_cast,
2114 // - a static_cast followed by a const_cast,
2116 // - a reinterpret_cast followed by a const_cast,
2121 // In plain language, this means trying a const_cast ...