| /freebsd-12.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-actions_test.cc | 61 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 D | gmock-generated-actions_test.cc | 55 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 D | gmock-matchers_test.cc | 85 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 D | gtest-tuple.h.pump | 100 // 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 D | gtest-tuple.h | 128 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 D | ABIInfo.h | 109 getNaturalAlignIndirect(QualType Ty, bool ByRef = true,
|
| H A D | TargetInfo.cpp | 81 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 D | ScopeInfo.h | 544 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 D | Sema.h | 5591 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 D | CheatSheet.md | 188 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 D | CookBook.md | 995 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 D | gmock-generated-actions.h.pump | 742 // 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 D | gmock-actions.h | 1257 inline internal::ReferenceWrapper<T> ByRef(T& l_value) { // NOLINT
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaLambda.cpp | 745 bool ByRef, in buildLambdaInitCaptureInitialization() argument 754 if (ByRef) { in buildLambdaInitCaptureInitialization()
|
| H A D | SemaExpr.cpp | 14967 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 D | SemaDecl.cpp | 12832 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 D | Attr.td | 770 let Args = [EnumArgument<"Type", "BlockType", ["byref"], ["ByRef"]>];
|