Home
last modified time | relevance | path

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

12

/freebsd-13.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-13.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 struct
130 struct ByRef<T&> { typedef T& type; }; // NOLINT
133 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h580 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, in Capture() argument
585 Kind(Block ? Cap_Block : ByRef ? Cap_ByRef : Cap_ByCopy), in Capture()
H A DSema.h6681 SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc, in actOnLambdaInitCaptureInitialization() argument
6684 Loc, ByRef, EllipsisLoc, None, Id, in actOnLambdaInitCaptureInitialization()
6688 SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc,
/freebsd-13.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-13.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-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp197 return get(Context, ByRef, Ty); in getWithByRefType()
692 return SetNode ? SetNode->getAttributeType(Attribute::ByRef) : nullptr; in getByRefType()
1751 return addTypeAttr(Attribute::ByRef, Ty); in addByRefAttr()
H A DVerifier.cpp1712 AttrCount += Attrs.hasAttribute(Attribute::ByRef); in verifyParameterAttrs()
1776 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
1797 if (Attrs.hasAttribute(Attribute::ByRef)) { in verifyParameterAttrs()
2378 if (Attrs.hasParamAttribute(i, Attribute::ByRef)) { in visitFunction()
3302 Assert(!Attrs.contains(Attribute::ByRef), in verifyTailCCMustTailAttrs()
3323 Attribute::ByRef}; in getParameterABIAttributes()
3334 Attrs.hasParamAttribute(I, Attribute::ByRef))) in getParameterABIAttributes()
H A DFunction.cpp118 return hasAttribute(Attribute::ByRef); in hasByRefAttr()
156 Attrs.hasParamAttribute(getArgNo(), Attribute::ByRef); in hasPointeeInMemoryValueAttr()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.td68 def ByRef : TypeAttr<"byref", [ParamAttr]>;
H A DAttributes.h918 Type *getByRefType() const { return getTypeAttr(Attribute::ByRef); }
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp793 SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc, in buildLambdaInitCaptureInitialization() argument
802 if (ByRef) { in buildLambdaInitCaptureInitialization()
H A DSemaExpr.cpp17513 bool ByRef = false; in captureInBlock() local
17561 ByRef = true; in captureInBlock()
17584 bool ByRef = true; in captureInCapturedRegion() local
17586 ByRef = (Kind == Sema::TryCapture_ExplicitByRef); in captureInCapturedRegion()
17600 ByRef = S.isOpenMPCapturedByRef(Var, RSI->OpenMPLevel, in captureInCapturedRegion()
17604 if (ByRef) in captureInCapturedRegion()
17630 bool ByRef = false; in captureInLambda() local
17632 ByRef = (Kind == Sema::TryCapture_ExplicitByRef); in captureInLambda()
17634 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref); in captureInLambda()
17638 if (ByRef) { in captureInLambda()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp1072 else if (I.hasAttribute(Attribute::ByRef)) in incorporateFunction()
H A DBitcodeWriter.cpp763 case Attribute::ByRef: in getAttrKindEncoding()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp948 {Attribute::ByVal, Attribute::StructRet, Attribute::ByRef, in remapInstruction()
H A DCodeExtractor.cpp938 case Attribute::ByRef: in constructFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp652 {Attribute::ByVal, Attribute::StructRet, Attribute::ByRef, in mapAttributeTypes()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DAttr.td911 let Args = [EnumArgument<"Type", "BlockType", ["byref"], ["ByRef"]>];
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1524 return Attribute::ByRef; in getAttrFromCode()

12