Home
last modified time | relevance | path

Searched refs:ConstRef (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-value-param-delayed.cpp56 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, …
58 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … in positiveAndNegative() argument
H A Dunnecessary-value-param.cpp96 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, …
98 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … in positiveAndNegative() argument
H A Dno-automatic-move.cpp74 StatusOr<Obj> ConstRef() { in ConstRef() function
H A Dunnecessary-copy-initialization.cpp23 using ConstRef = const ExpensiveToCopyType &; typedef
24 ConstRef referenceWithAlias() const;
/llvm-project-15.0.7/clang/test/CodeCompletion/
H A Dmember-access.cpp234 void testConstLValue(const Overloads& ConstRef) { in testConstLValue() argument
235 ConstRef. in testConstLValue()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DBinaryStreamTest.cpp278 BinaryStreamRef ConstRef(Stream); in TEST_F() local
279 EXPECT_EQ(0U, ConstRef.getLength()); in TEST_F()
285 EXPECT_EQ(2U, ConstRef.getLength()); in TEST_F()
295 BinaryStreamRef Dropped = ConstRef.drop_front(1); in TEST_F()
299 EXPECT_EQ(4U, ConstRef.getLength()); in TEST_F()
306 EXPECT_EQ(6U, ConstRef.getLength()); in TEST_F()
313 EXPECT_EQ(8U, ConstRef.getLength()); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.h100 enum PassMode { Ref, ConstRef, Value }; enumerator
H A DHover.cpp911 PassType.PassBy = HoverInfo::PassType::ConstRef; in maybeAddCalleeArgInfo()
925 ? HoverInfo::PassType::ConstRef in maybeAddCalleeArgInfo()
1141 if (CallPassType->PassBy == HoverInfo::PassType::ConstRef) in present()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DHoverTests.cpp1160 {"int_by_const_ref([[^int_x]]);", PassMode::ConstRef, false}, in TEST()
1162 {"int_by_const_ref([[^int_ref]]);", PassMode::ConstRef, false}, in TEST()
1163 {"int_by_const_ref([[^int_ref]]);", PassMode::ConstRef, false}, in TEST()
1164 {"int_by_const_ref([[^int_const_ref]]);", PassMode::ConstRef, false}, in TEST()
1167 {"base_by_const_ref([[^base]]);", PassMode::ConstRef, false}, in TEST()
1168 {"base_by_const_ref([[^base_const_ref]]);", PassMode::ConstRef, false}, in TEST()
1172 {"base_by_const_ref([[^derived]]);", PassMode::ConstRef, false}, in TEST()
1180 {"custom_by_value([[^base]]);", PassMode::ConstRef, true}, in TEST()
2978 HI.CallPassType->PassBy = PassMode::ConstRef; in TEST()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1025 struct ConstRef { typedef const T& type; }; argument
1027 struct ConstRef<T&> { typedef T& type; };
1031 typename ::testing::internal::ConstRef<T>::type
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DBitTracker.cpp124 bool ConstRef = false; // A sequence of refs to the same bit. in operator <<() local
136 ConstRef = (V.RefI.Pos == SV.RefI.Pos); in operator <<()
140 if (ConstRef && V.RefI.Pos == SV.RefI.Pos) in operator <<()
159 SeqRef = ConstRef = false; in operator <<()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclCXX.cpp10534 const char *ConstRef in CheckConstructor() local
10538 << FixItHint::CreateInsertion(ParamLoc, ConstRef); in CheckConstructor()