Lines Matching defs:pointer
190 // passing the parameters by pointer usually makes your code more
204 // named result_listener, whose type is a pointer to class
422 // Do not trigger if only one of them is a pointer. That implies a
761 // pointer that is NULL.
775 // pointer that is not NULL.
911 // Accepts pointer types, particularly:
979 // Accepts pointer types, particularly:
1032 // Accepts pointer types, particularly:
1086 // Accepts pointer types, particularly:
1861 // Implements the Pointee(m) matcher for matching a pointer whose
1862 // pointee matches matcher m. The pointer can be either raw or smart.
1869 // used as a matcher for any pointer type whose pointee type is
1871 // either a raw pointer or a smart pointer.
1882 // The monomorphic implementation that works for a particular pointer type.
1903 bool MatchAndExplain(Pointer pointer,
1905 if (GetRawPointer(pointer) == nullptr) return false;
1908 return MatchPrintAndExplain(*pointer, matcher_, listener);
1919 // Implements the Pointer(m) matcher for matching a pointer that matches matcher
1920 // m. The pointer can be either raw or smart, and will match `m` against the
1921 // raw pointer.
1928 // used as a matcher for any pointer type whose pointer type is
1930 // either a raw pointer or a smart pointer.
1941 // The monomorphic implementation that works for a particular pointer type.
1953 *os << "is a pointer that ";
1958 *os << "is not a pointer that ";
1962 bool MatchAndExplain(PointerType pointer,
1964 *listener << "which is a pointer that ";
1965 Pointer p = GetRawPointer(pointer);
1977 // Implements the WhenDynamicCastTo<T>(m) matcher that matches a pointer or
1980 // If To is a pointer and the cast fails, the inner matcher will receive NULL.
2011 // To is a pointer. Cast and forward the result.
2094 // thus cannot be a pointer. Therefore we pass false_type() as
2162 // type and thus cannot be a pointer. Therefore we pass
2197 << "NULL function pointer is passed into ResultOf().";
2281 // 'this' is a const pointer. It's the user's responsibility not to
4133 // ElementsAreArray(pointer, count)
4141 // array, a pointer and count, a vector, an initializer list, or an
4156 inline auto ElementsAreArray(const T* pointer, size_t count)
4157 -> decltype(ElementsAreArray(pointer, pointer + count)) {
4158 return ElementsAreArray(pointer, pointer + count);
4180 // UnorderedElementsAreArray(pointer, count)
4188 // The matchers can be specified as an array, a pointer and count, a container,
4203 const T* pointer, size_t count) {
4204 return UnorderedElementsAreArray(pointer, pointer + count);
4255 // Creates a polymorphic matcher that matches any NULL pointer.
4260 // Creates a polymorphic matcher that matches any non-NULL pointer.
4262 // thinks that that expression is comparing a pointer with an integer).
4335 // Creates a matcher that matches a pointer (raw or smart) that points
4344 // Creates a matcher that matches a pointer or reference that matches
4347 // If To is a pointer and the cast fails, the inner matcher will receive NULL.
4445 // `callable` parameter can be a function, function pointer, or a functor. It is
4830 // IsSupersetOf(pointer, count)
4852 // The matchers can be specified as an array, a pointer and count, a container,
4867 const T* pointer, size_t count) {
4868 return IsSupersetOf(pointer, pointer + count);
4891 // IsSubsetOf(pointer, count)
4909 // The matchers can be specified as an array, a pointer and count, a container,
4924 const T* pointer, size_t count) {
4925 return IsSubsetOf(pointer, pointer + count);
5023 // Creates a matcher that matches a pointer (raw or smart) that matches
5126 // AnyOfArray(pointer, count)
5135 // AllOfArray(pointer, count)
5143 // The matchers can be specified as an array, a pointer and count, a container,