Home
last modified time | relevance | path

Searched refs:URIForFile (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DProtocol.h75 struct URIForFile { struct
76 URIForFile() = default;
88 static URIForFile canonicalize(llvm::StringRef AbsPath,
91 static llvm::Expected<URIForFile> fromURI(const URI &U,
100 friend bool operator==(const URIForFile &LHS, const URIForFile &RHS) { argument
104 friend bool operator!=(const URIForFile &LHS, const URIForFile &RHS) {
108 friend bool operator<(const URIForFile &LHS, const URIForFile &RHS) {
113 explicit URIForFile(std::string &&File) : File(std::move(File)) {} in URIForFile() argument
119 llvm::json::Value toJSON(const URIForFile &U);
120 bool fromJSON(const llvm::json::Value &, URIForFile &, llvm::json::Path);
[all …]
DDiagnostics.h111 const Diag &D, const URIForFile &File, const ClangdDiagnosticOptions &Opts,
115 CodeAction toCodeAction(const Fix &D, const URIForFile &File);
DProtocol.cpp33 URIForFile URIForFile::canonicalize(llvm::StringRef AbsPath, in canonicalize()
41 return URIForFile(std::string(AbsPath)); in canonicalize()
43 return URIForFile(std::move(*Resolved)); in canonicalize()
46 llvm::Expected<URIForFile> URIForFile::fromURI(const URI &U, in fromURI()
51 return URIForFile(std::move(*Resolved)); in fromURI()
54 bool fromJSON(const llvm::json::Value &E, URIForFile &R, llvm::json::Path P) { in fromJSON()
66 auto U = URIForFile::fromURI(*Parsed, /*HintPath=*/""); in fromJSON()
78 llvm::json::Value toJSON(const URIForFile &U) { return U.uri(); } in toJSON()
80 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const URIForFile &U) { in operator <<()
DClangdLSPServer.cpp76 CodeAction toCodeAction(const ClangdServer::TweakRef &T, const URIForFile &File, in toCodeAction()
868 Notification.uri = URIForFile::canonicalize(File, /*TUPath=*/File); in onDocumentDidClose()
931 const URIForFile &FileURI) { in flattenSymbolHierarchy()
955 URIForFile FileURI = Params.textDocument.uri; in onDocumentSymbol()
996 URIForFile File = Params.textDocument.uri; in onCodeAction()
1169 Callback<llvm::Optional<URIForFile>> Reply) { in onSwitchSourceHeader()
1177 return Reply(URIForFile::canonicalize(**Path, Params.uri.file())); in onSwitchSourceHeader()
1584 URIForFile::canonicalize(File, /*TUPath=*/File); in onHighlightingsReady()
1594 Notification.uri = URIForFile::canonicalize(File, /*TUPath=*/File); in onDiagnosticsReady()
DDiagnostics.cpp370 CodeAction toCodeAction(const Fix &F, const URIForFile &File) { in toCodeAction()
407 const Diag &D, const URIForFile &File, const ClangdDiagnosticOptions &Opts, in toLSPDiags()
460 URIForFile::canonicalize(*Note.AbsFile, File.file()); in toLSPDiags()
DXRefs.cpp134 auto U = URIForFile::fromURI(*Uri, TUPath); in toLSPLocation()
219 L.uri = URIForFile::canonicalize(*FilePath, TUPath); in makeLocation()
237 URIForFile::canonicalize(Inc.Resolved, MainFilePath), Range{}}; in locateFileReferent()
747 URIForFile::canonicalize(Inc.Resolved, *MainFilePath)})); in getDocumentLinks()
1192 auto URIMainFile = URIForFile::canonicalize(*MainFilePath, *MainFilePath); in findReferences()
1381 HI.uri = URIForFile::canonicalize(*FilePath, *TUPath); in declToHierarchyItem()
DClangdLSPServer.h122 Callback<llvm::Optional<URIForFile>>);
DFindSymbols.cpp69 L.uri = URIForFile::canonicalize(*Path, TUPath); in indexToLSPLocation()
DTUScheduler.cpp1220 FStatus.uri = URIForFile::canonicalize(File, /*TUPath=*/File); in render()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DDiagnosticsTests.cpp607 URIForFile MainFile = in TEST()
608 URIForFile::canonicalize(testPath("foo/bar/main.cpp"), ""); in TEST()
609 URIForFile HeaderFile = in TEST()
610 URIForFile::canonicalize(testPath("foo/bar/header.h"), ""); in TEST()
DLSPClient.cpp170 return toJSON(URIForFile::canonicalize(Path, Path)); in uri()
DXRefsTests.cpp49 return Location{URIForFile::canonicalize(File, testRoot()), Range} == arg;
1964 URIForFile::canonicalize(testPath("foo.h"), "")}), in TEST()
1966 URIForFile::canonicalize(testPath("bar.h"), "")}))); in TEST()
DClangdTests.cpp65 Location{URIForFile::canonicalize(File, testRoot()), Range};