| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | unnecessary-value-param-delayed.cpp | 56 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … 58 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … in positiveAndNegative() argument
|
| H A D | unnecessary-value-param.cpp | 96 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … 98 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, … in positiveAndNegative() argument
|
| H A D | no-automatic-move.cpp | 74 StatusOr<Obj> ConstRef() { in ConstRef() function
|
| H A D | unnecessary-copy-initialization.cpp | 23 using ConstRef = const ExpensiveToCopyType &; typedef 24 ConstRef referenceWithAlias() const;
|
| /llvm-project-15.0.7/clang/test/CodeCompletion/ |
| H A D | member-access.cpp | 234 void testConstLValue(const Overloads& ConstRef) { in testConstLValue() argument 235 ConstRef. in testConstLValue()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | BinaryStreamTest.cpp | 278 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 D | Hover.h | 100 enum PassMode { Ref, ConstRef, Value }; enumerator
|
| H A D | Hover.cpp | 911 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 D | HoverTests.cpp | 1160 {"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 D | gtest-port.h | 1025 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 D | BitTracker.cpp | 124 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 D | SemaDeclCXX.cpp | 10534 const char *ConstRef in CheckConstructor() local 10538 << FixItHint::CreateInsertion(ParamLoc, ConstRef); in CheckConstructor()
|