| /freebsd-13.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-13.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 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 D | ScopeInfo.h | 580 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 D | Sema.h | 6681 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 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-13.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-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Attributes.cpp | 197 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 D | Verifier.cpp | 1712 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 D | Function.cpp | 118 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 D | Attributes.td | 68 def ByRef : TypeAttr<"byref", [ParamAttr]>;
|
| H A D | Attributes.h | 918 Type *getByRefType() const { return getTypeAttr(Attribute::ByRef); }
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLambda.cpp | 793 SourceLocation Loc, bool ByRef, SourceLocation EllipsisLoc, in buildLambdaInitCaptureInitialization() argument 802 if (ByRef) { in buildLambdaInitCaptureInitialization()
|
| H A D | SemaExpr.cpp | 17513 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 D | ValueEnumerator.cpp | 1072 else if (I.hasAttribute(Attribute::ByRef)) in incorporateFunction()
|
| H A D | BitcodeWriter.cpp | 763 case Attribute::ByRef: in getAttrKindEncoding()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ValueMapper.cpp | 948 {Attribute::ByVal, Attribute::StructRet, Attribute::ByRef, in remapInstruction()
|
| H A D | CodeExtractor.cpp | 938 case Attribute::ByRef: in constructFunction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 652 {Attribute::ByVal, Attribute::StructRet, Attribute::ByRef, in mapAttributeTypes()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Attr.td | 911 let Args = [EnumArgument<"Type", "BlockType", ["byref"], ["ByRef"]>];
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 1524 return Attribute::ByRef; in getAttrFromCode()
|