Home
last modified time | relevance | path

Searched refs:Needle (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/compiler-rt/test/fuzzer/
H A DSingleMemcmpTest.cpp13 const char *Needle = "Some long string"; in LLVMFuzzerTestOneInput() local
14 if (Size >= strlen(Needle) && !memcmp(S, Needle, strlen(Needle))) { in LLVMFuzzerTestOneInput()
/llvm-project-15.0.7/llvm/lib/Support/
H A DUnicodeNameToCodepoint.cpp120 static bool startsWith(StringRef Name, StringRef Needle, bool Strict, in startsWith() argument
126 if (!Name.startswith(Needle)) in startsWith()
128 Consummed = Needle.size(); in startsWith()
131 if (Needle.empty()) in startsWith()
135 auto NeedlePos = Needle.begin(); in startsWith()
161 IgnoreSpaces(NeedlePos, Needle.end(), PreviousCharInNeedle, IsPrefix); in startsWith()
162 if (NeedlePos == Needle.end()) in startsWith()
172 if (NeedlePos != Needle.end()) { in startsWith()
176 return NeedlePos == Needle.end(); in startsWith()
H A DStringRef.cpp138 const char *Needle = Str.data(); in find() local
145 const char *Ptr = (const char *)::memchr(Start, Needle[0], Size); in find()
154 if (std::memcmp(Start, Needle, N) == 0) in find()
169 if (LLVM_UNLIKELY(Last == (uint8_t)Needle[N - 1])) in find()
170 if (std::memcmp(Start, Needle, N - 1) == 0) in find()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStartswithCheck.cpp86 const auto *Needle = Result.Nodes.getNodeAs<Expr>("needle"); in check() local
87 assert(Needle != nullptr); in check()
103 CharSourceRange::getTokenRange(Needle->getSourceRange()), Source, in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestIndex.cpp30 static std::string replace(llvm::StringRef Haystack, llvm::StringRef Needle, in replace() argument
33 Haystack.split(Parts, Needle); in replace()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp406 bool textEquals(const char (&Needle)[N], const char *HayStack) { in textEquals()
407 return StringRef{HayStack, N - 1} == Needle; in textEquals()
/llvm-project-15.0.7/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp728 const DeclRefExpr *Needle; member in __anondc78ae6b0711::ContainsReference
733 ContainsReference(ASTContext &Context, const DeclRefExpr *Needle) in ContainsReference() argument
734 : Inherited(Context), FoundReference(false), Needle(Needle) {} in ContainsReference()
745 if (E == Needle) in VisitDeclRefExpr()