Lines Matching refs:StringRef
69 size_t matchingPrefix(StringRef L, StringRef R) {
80 bool operator()(StringRef Key, std::pair<StringRef, size_t> Value) const {
81 StringRef V = Prefix ? Value.first.substr(0, Key.size()) : Value.first;
84 bool operator()(std::pair<StringRef, size_t> Value, StringRef Key) const {
85 StringRef V = Prefix ? Value.first.substr(0, Key.size()) : Value.first;
92 types::ID guessType(StringRef Filename, bool *Certain = nullptr) {
207 CompileCommand transferTo(StringRef Filename) const {
221 const StringRef Flag = toCLFlag(TargetType);
245 for (StringRef S : llvm::reverse(CmdLine)) {
272 static StringRef toCLFlag(types::ID Type) {
281 return StringRef();
331 StringRef Path = Strings.save(StringRef(OriginalPaths[I]).lower());
351 StringRef chooseProxy(StringRef OriginalFilename,
371 using SubstringAndIndex = std::pair<StringRef, size_t>;
381 DenseMap<size_t, int> scoreCandidates(StringRef Filename) const {
385 StringRef Stem = sys::path::stem(Filename);
386 llvm::SmallVector<StringRef, DirectorySegmentsQueried> Dirs;
387 llvm::StringRef Prefix;
408 for (StringRef Dir : Dirs)
419 StringRef Filename,
466 indexLookup(StringRef Key, ArrayRef<SubstringAndIndex> Idx) const {
474 SubstringAndIndex longestMatch(StringRef Key,
512 getCompileCommands(StringRef Filename) const override {