Home
last modified time | relevance | path

Searched refs:ByRef (Results 1 – 17 of 17) sorted by relevance

/freebsd-12.1/contrib/googletest/googlemock/test/
H A Dgmock-actions_test.cc61 using testing::ByRef;
1075 ByRef(s1); in TEST()
1080 ref_wrapper = ByRef(s2); in TEST()
1085 ByRef(s1); in TEST()
1097 const int& const_ref = ByRef(n); in TEST()
1106 int& ref = ByRef(n); in TEST()
1110 const int& const_ref = ByRef(n); in TEST()
1117 const int& r1 = ByRef<const int>(n); in TEST()
1124 Derived& r2 = ByRef<Derived>(d); in TEST()
1130 Base& r4 = ByRef<Base>(d); in TEST()
[all …]
H A Dgmock-generated-actions_test.cc55 using testing::ByRef;
273 InvokeArgument<0>(ByRef(g_double)); in TEST()
278 a = InvokeArgument<0>(ByRef(x)); // This calls ByRef() on a non-const. in TEST()
H A Dgmock-matchers_test.cc85 using testing::ByRef;
4754 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1)); in TEST()
4763 const Matcher<NotCopyable&> m = Ge(ByRef(value2)); in TEST()
/freebsd-12.1/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-tuple.h.pump100 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
102 struct ByRef { typedef const T& type; }; // NOLINT
104 struct ByRef<T&> { typedef T& type; }; // NOLINT
106 // A handy wrapper for ByRef.
107 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
H A Dgtest-tuple.h128 struct ByRef { typedef const T& type; }; // NOLINT argument
130 struct ByRef<T&> { typedef T& type; }; // NOLINT
133 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DABIInfo.h109 getNaturalAlignIndirect(QualType Ty, bool ByRef = true,
H A DTargetInfo.cpp81 ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByRef, bool Realign, in getNaturalAlignIndirect() argument
84 ByRef, Realign, Padding); in getNaturalAlignIndirect()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DScopeInfo.h544 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() argument
549 Cpy, !Var ? Cap_VLA : Block ? Cap_Block : ByRef ? Cap_ByRef in Capture()
H A DSema.h5591 SourceLocation Loc, bool ByRef, IdentifierInfo *Id, in actOnLambdaInitCaptureInitialization() argument
5594 Loc, ByRef, Id, InitKind != LambdaCaptureInitKind::CopyInit, Init)); in actOnLambdaInitCaptureInitialization()
5596 QualType buildLambdaInitCaptureInitialization(SourceLocation Loc, bool ByRef,
/freebsd-12.1/contrib/googletest/googlemock/docs/
H A DCheatSheet.md188 doesn't have a public copy constructor, try wrap it in `ByRef()`,
189 e.g. `Eq(ByRef(non_copyable_value))`. If you do that, make sure
405 In `InvokeArgument<N>(...)`, if an argument needs to be passed by reference, wrap it inside `ByRef(…
407 InvokeArgument<2>(5, string("Hi"), ByRef(foo))
H A DCookBook.md995 using ::testing::ByRef;
999 EXPECT_CALL(mock_obj, Foo(Eq(ByRef(bar))));
1002 EXPECT_CALL(mock_obj, Foo(Lt(ByRef(bar))));
1532 You may be tempted to try `ByRef()`:
1535 using testing::ByRef;
1546 .WillRepeatedly(Return(ByRef(x)));
1563 some temporary objects.) As a result, `ByRef(x)` is converted to an
1565 and `Return(ByRef(x))` will always return 0.
1951 wrap it inside `ByRef()`:
1958 using ::testing::ByRef;
[all …]
/freebsd-12.1/contrib/googletest/googlemock/include/gmock/
H A Dgmock-generated-actions.h.pump742 // pass an argument by reference, wrap it inside ByRef(). For
745 // InvokeArgument<1>(5, string("Hello"), ByRef(foo))
750 // 2. If the callable takes an argument by reference but ByRef() is
H A Dgmock-actions.h1257 inline internal::ReferenceWrapper<T> ByRef(T& l_value) { // NOLINT
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLambda.cpp745 bool ByRef, in buildLambdaInitCaptureInitialization() argument
754 if (ByRef) { in buildLambdaInitCaptureInitialization()
H A DSemaExpr.cpp14967 bool ByRef = false; in captureInBlock() local
15028 ByRef = true; in captureInBlock()
15076 BSI->addCapture(Var, HasBlocksAttr, ByRef, Nested, Loc, in captureInBlock()
15094 bool ByRef = true; in captureInCapturedRegion() local
15104 ByRef = S.isOpenMPCapturedByRef(Var, RSI->OpenMPLevel); in captureInCapturedRegion()
15107 if (ByRef) in captureInCapturedRegion()
15191 bool ByRef = false; in captureInLambda() local
15193 ByRef = (Kind == Sema::TryCapture_ExplicitByRef); in captureInLambda()
15195 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda()
15199 if (ByRef) { in captureInLambda()
[all …]
H A DSemaDecl.cpp12832 const bool ByRef = C.getCaptureKind() == LCK_ByRef; in RebuildLambdaScopeInfo() local
12833 LSI->addCapture(VD, /*IsBlock*/false, ByRef, in RebuildLambdaScopeInfo()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DAttr.td770 let Args = [EnumArgument<"Type", "BlockType", ["byref"], ["ByRef"]>];