Home
last modified time | relevance | path

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

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dreturn-const-ref-from-parameter.cpp14 struct ConstRef { using type = const T&; }; argument
43 typename ConstRef<T>::type itf2(const T &a) { return a; } in itf3()
47 typename ConstRef<T>::type itf3(typename ConstRef<T>::type a) { return a; } in itf4()
51 const T& itf4(typename ConstRef<T>::type a) { return a; } in instantiate()
86 typename ConstRef<T>::type tf2(const T &a) { return a; }
89 typename ConstRef<T>::type tf3(typename ConstRef<T>::type a) { return a; } in f1()
92 const T& tf4(typename ConstRef<T>::type a) { return a; } in tf1()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-value-param-delayed.cpp56 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy);
57 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy);
58 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in positiveAndNegative() argument
61 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy) { in positiveAndNegative()
H A Dunnecessary-value-param.cpp121 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy); in negativeTemplateType()
122 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy);
123 void positiveAndNegative(const ExpensiveToCopyType ConstCopy, const ExpensiveToCopyType& ConstRef, ExpensiveToCopyType Copy) { in negativeArray()
126 // CHECK-FIXES: void positiveAndNegative(const ExpensiveToCopyType& ConstCopy, const ExpensiveToCopyType& ConstRef, const ExpensiveToCopyType& Copy) { in negativePointer()
98 positiveAndNegative(const ExpensiveToCopyType ConstCopy,const ExpensiveToCopyType & ConstRef,ExpensiveToCopyType Copy) positiveAndNegative() argument
H A Dno-automatic-move.cpp101 UrefCtor<Obj> ConstRef() { in ConstRef() function
H A Dunnecessary-copy-initialization.cpp23 using ConstRef = const ExpensiveToCopyType &; typedef
24 ConstRef referenceWithAlias() const;
909 const auto &ConstRef = UC.Member;
885 const auto &ConstRef = UC.Member; positiveConstMemberExpr() local
H A Dfor-range-copy.cpp329 const auto &ConstRef = SS.Member; in positiveConstMemberExpr() local
/llvm-project/clang/test/CodeCompletion/
H A Dmember-access.cpp242 void testConstLValue(const Overloads& ConstRef) { in testConstLValue() argument
243 ConstRef. in testConstLValue()
/llvm-project/llvm/unittests/Support/
H A DBinaryStreamTest.cpp279 BinaryStreamRef ConstRef(Stream); in TEST_F() local
280 EXPECT_EQ(0U, ConstRef.getLength()); in TEST_F()
286 EXPECT_EQ(2U, ConstRef.getLength()); in TEST_F()
296 BinaryStreamRef Dropped = ConstRef.drop_front(1); in TEST_F()
300 EXPECT_EQ(4U, ConstRef.getLength()); in TEST_F()
307 EXPECT_EQ(6U, ConstRef.getLength()); in TEST_F()
314 EXPECT_EQ(8U, ConstRef.getLength()); in TEST_F()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DHoverTests.cpp1089 HI.CallPassType = HoverInfo::PassType{PassMode::ConstRef, false}; in TEST()
1107 HI.CallPassType = HoverInfo::PassType{PassMode::ConstRef, false}; in TEST()
1188 HI.CallPassType = HoverInfo::PassType{PassMode::ConstRef, true}; in TEST()
1515 {"int_by_const_ref([[^int_x]]);", PassMode::ConstRef, false}, in TEST()
1516 {"int_by_const_ref([[^123]]);", PassMode::ConstRef, false}, in TEST()
1518 {"int_by_const_ref([[^int_ref]]);", PassMode::ConstRef, false}, in TEST()
1519 {"int_by_const_ref([[^int_ref]]);", PassMode::ConstRef, false}, in TEST()
1520 {"int_by_const_ref([[^int_const_ref]]);", PassMode::ConstRef, false}, in TEST()
1523 {"base_by_const_ref([[^base]]);", PassMode::ConstRef, false}, in TEST()
1524 {"base_by_const_ref([[^base_const_ref]]);", PassMode::ConstRef, fals in TEST()
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DHover.h107 enum PassMode { Ref, ConstRef, Value }; enumerator
H A DHover.cpp1050 return HoverInfo::PassType::ConstRef;
1112 PassType.PassBy = HoverInfo::PassType::ConstRef; in maybeAddCalleeArgInfo()
1126 ? HoverInfo::PassType::ConstRef in maybeAddCalleeArgInfo()
1152 PassType.PassBy = HoverInfo::PassType::ConstRef; in maybeAddCalleeArgInfo()
1508 if (CallPassType->PassBy == HoverInfo::PassType::ConstRef) in present()
/llvm-project/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/third-party/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1107 struct ConstRef { struct
1111 struct ConstRef<T&> { argument
1117 typename ::testing::internal::ConstRef<T>::type
/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp10925 const char *ConstRef in CheckDestructorDeclarator()
10929 << FixItHint::CreateInsertion(ParamLoc, ConstRef); in CheckDestructorDeclarator()
10794 const char *ConstRef CheckConstructor() local