Lines Matching full:filepath

65   llvm::Expected<StringRef> getContentForFile(StringRef FilePath);
68 llvm::Error addReplacement(StringRef FilePath, StringRef Content,
114 static const auto MakeReplacement = [](StringRef FilePath, in addClassKeywordToDeclarations()
116 return tooling::Replacement(FilePath, Offset, 0, "class "); in addClassKeywordToDeclarations()
149 const auto MakeReplacement = [&EnumName](StringRef FilePath, in scopifyEnumValue()
155 return tooling::Replacement(FilePath, Offset, Length, {}); in scopifyEnumValue()
163 const auto MakeReplacement = [&](StringRef FilePath, StringRef Content, in scopifyEnumValue() argument
189 return tooling::Replacement(FilePath, Offset, in scopifyEnumValue()
191 return tooling::Replacement(FilePath, Offset + EnumName.size(), in scopifyEnumValue()
195 : tooling::Replacement(FilePath, Offset, 0, in scopifyEnumValue()
205 llvm::Expected<StringRef> ScopifyEnum::getContentForFile(StringRef FilePath) { in getContentForFile() argument
206 if (auto It = ContentPerFile.find(FilePath); It != ContentPerFile.end()) in getContentForFile()
208 auto Buffer = S->FS->getBufferForFile(FilePath); in getContentForFile()
213 ContentPerFile.insert(std::make_pair(FilePath, Content)); in getContentForFile()
220 StringRef FilePath = Ref.Loc.uri.file(); in addReplacementForReference() local
221 llvm::Expected<StringRef> Content = getContentForFile(FilePath); in addReplacementForReference()
229 GetReplacement(FilePath, *Content, *Offset); in addReplacementForReference()
231 return addReplacement(FilePath, *Content, Replacement); in addReplacementForReference()
236 ScopifyEnum::addReplacement(StringRef FilePath, StringRef Content, in addReplacement() argument
238 Edit &TheEdit = E.ApplyEdits[FilePath]; in addReplacement()