Home
last modified time | relevance | path

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

12

/llvm-project/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.h35 class URIForFile; variable
60 void addDocument(const URIForFile &uri, StringRef contents, int64_t version,
65 void updateDocument(const URIForFile &uri,
72 std::optional<int64_t> removeDocument(const URIForFile &uri);
75 void getLocationsOf(const URIForFile &uri, const Position &defPos,
79 void findReferencesOf(const URIForFile &uri, const Position &pos,
83 void getDocumentLinks(const URIForFile &uri,
88 std::optional<Hover> findHover(const URIForFile &uri,
92 void findDocumentSymbols(const URIForFile &uri,
96 CompletionList getCodeCompletion(const URIForFile &uri,
[all …]
H A DPDLLServer.cpp41 static lsp::URIForFile getURIFromLoc(llvm::SourceMgr &mgr, SMRange loc, in getURIFromLoc()
42 const lsp::URIForFile &mainFileURI) { in getURIFromLoc()
46 llvm::Expected<lsp::URIForFile> fileForLoc = lsp::URIForFile::fromFile( in getURIFromLoc()
63 const lsp::URIForFile &uri) { in getLocationFromLoc()
70 const lsp::URIForFile &uri) { in getLspDiagnoticFromDiag()
262 PDLDocument(const lsp::URIForFile &uri, StringRef contents,
272 void getLocationsOf(const lsp::URIForFile &uri, const lsp::Position &defPos,
274 void findReferencesOf(const lsp::URIForFile &uri, const lsp::Position &pos,
281 void getDocumentLinks(const lsp::URIForFile
[all...]
H A DProtocol.h41 URIForFile uri;
/llvm-project/mlir/lib/Tools/mlir-lsp-server/
H A DMLIRServer.h31 class URIForFile; variable
45 void addOrUpdateDocument(const URIForFile &uri, StringRef contents,
52 std::optional<int64_t> removeDocument(const URIForFile &uri);
55 void getLocationsOf(const URIForFile &uri, const Position &defPos,
59 void findReferencesOf(const URIForFile &uri, const Position &pos,
64 std::optional<Hover> findHover(const URIForFile &uri,
68 void findDocumentSymbols(const URIForFile &uri,
72 CompletionList getCodeCompletion(const URIForFile &uri,
76 void getCodeActions(const URIForFile &uri, const Range &pos,
82 convertFromBytecode(const URIForFile &uri);
[all …]
H A DMLIRServer.cpp39 llvm::Expected<lsp::URIForFile> sourceURI = in getLocationFromLoc()
40 lsp::URIForFile::fromFile(loc.getFilename(), uriScheme); in getLocationFromLoc()
60 StringRef uriScheme, const lsp::URIForFile *uri = nullptr) { in getLocationFromLoc()
93 const lsp::URIForFile &uri) { in collectLocationsFromLoc()
201 const lsp::URIForFile &uri) { in getLspDiagnoticFromDiag()
259 MLIRDocument(MLIRContext &context, const lsp::URIForFile &uri,
268 void getLocationsOf(const lsp::URIForFile &uri, const lsp::Position &defPos,
270 void findReferencesOf(const lsp::URIForFile &uri, const lsp::Position &pos,
277 std::optional<lsp::Hover> findHover(const lsp::URIForFile &uri,
309 lsp::CompletionList getCodeCompletion(const lsp::URIForFile &uri,
[all …]
H A DProtocol.h35 URIForFile uri;
H A DMlirLspServerMain.cpp72 URIForFile::registerSupportedScheme("mlir.bytecode-mlir"); in MlirLspServerMain()
H A DLSPServer.cpp249 URIForFile uri = params.textDocument.uri; in onCodeAction()
/llvm-project/mlir/lib/Tools/tblgen-lsp-server/
H A DTableGenServer.h27 class URIForFile; variable
52 void addDocument(const URIForFile &uri, StringRef contents, int64_t version,
57 void updateDocument(const URIForFile &uri,
64 std::optional<int64_t> removeDocument(const URIForFile &uri);
67 void getLocationsOf(const URIForFile &uri, const Position &defPos,
71 void findReferencesOf(const URIForFile &uri, const Position &pos,
75 void getDocumentLinks(const URIForFile &uri,
80 std::optional<Hover> findHover(const URIForFile &uri,
H A DTableGenServer.cpp39 static lsp::URIForFile getURIFromLoc(const SourceMgr &mgr, SMLoc loc, in getURIFromLoc()
40 const lsp::URIForFile &mainFileURI) { in getURIFromLoc()
44 llvm::Expected<lsp::URIForFile> fileForLoc = lsp::URIForFile::fromFile( in getURIFromLoc()
55 const lsp::URIForFile &uri) { in getLocationFromLoc()
60 const lsp::URIForFile &uri) {
67 const lsp::URIForFile &uri) { in getLspDiagnoticFromDiag()
325 TableGenTextFile(const lsp::URIForFile &uri, StringRef fileContents,
335 LogicalResult update(const lsp::URIForFile &uri, int64_t newVersion,
343 void getLocationsOf(const lsp::URIForFile
[all...]
/llvm-project/mlir/include/mlir/Tools/lsp-server-support/
H A DProtocol.h97 class URIForFile {
99 URIForFile() = default;
102 static llvm::Expected<URIForFile> fromURI(StringRef uri);
106 static llvm::Expected<URIForFile> fromFile(StringRef absoluteFilepath,
120 friend bool operator==(const URIForFile &lhs, const URIForFile &rhs) {
123 friend bool operator!=(const URIForFile &lhs, const URIForFile &rhs) {
126 friend bool operator<(const URIForFile &lhs, const URIForFile &rhs) {
136 explicit URIForFile(std::string &&filePath, std::string &&uriStr) in URIForFile() function
144 llvm::json::Value toJSON(const URIForFile &value);
145 bool fromJSON(const llvm::json::Value &value, URIForFile &result,
[all …]
H A DSourceMgrUtils.h48 SourceMgrInclude(const lsp::URIForFile &uri, const lsp::Range &range) in SourceMgrInclude()
55 lsp::URIForFile uri;
/llvm-project/clang-tools-extra/clangd/
H A DProtocol.h84 struct URIForFile { struct
85 URIForFile() = default;
89 /// File paths in URIForFile can come from index or local AST. Path from
97 static URIForFile canonicalize(llvm::StringRef AbsPath,
100 static llvm::Expected<URIForFile> fromURI(const URI &U,
109 friend bool operator==(const URIForFile &LHS, const URIForFile &RHS) { argument
113 friend bool operator!=(const URIForFile &LHS, const URIForFile &RHS) {
117 friend bool operator<(const URIForFile
122 URIForFileURIForFile URIForFile() argument
127 FileURIForFile global() argument
[all...]
H A DClangdLSPServer.cpp81 const URIForFile &File) { in toCodeAction()
98 CodeAction toCodeAction(const ClangdServer::TweakRef &T, const URIForFile &File, in toCodeAction()
120 CodeAction toCodeAction(const Fix &F, const URIForFile &File, in toCodeAction()
941 Notification.uri = URIForFile::canonicalize(File, /*TUPath=*/File); in onDocumentOnTypeFormatting()
987 const URIForFile &FileURI) { in flattenSymbolHierarchy()
1011 URIForFile FileURI = Params.textDocument.uri; in onDocumentSymbol()
1051 URIForFile File = Params.textDocument.uri; in onCodeAction()
1231 Callback<std::optional<URIForFile>> Reply) { in onSwitchSourceHeader()
1239 return Reply(URIForFile::canonicalize(**Path, Params.uri.file())); in onDocumentHighlight()
1796 Notification.uri = URIForFile in onDiagnosticsReady()
[all...]
H A DProtocol.cpp46 URIForFile URIForFile::canonicalize(llvm::StringRef AbsPath, in canonicalize()
51 elog("URIForFile: failed to resolve path {0} with TU path {1}: " in canonicalize()
54 return URIForFile(std::string(AbsPath)); in canonicalize()
56 return URIForFile(std::move(*Resolved)); in canonicalize()
59 llvm::Expected<URIForFile> URIForFile::fromURI(const URI &U, in fromURI()
64 return URIForFile(std::move(*Resolved)); in fromURI()
67 bool fromJSON(const llvm::json::Value &E, URIForFile &R, llvm::json::Path P) { in fromJSON()
80 auto U = URIForFile in fromJSON()
[all...]
H A DDiagnostics.h124 const Diag &D, const URIForFile &File, const ClangdDiagnosticOptions &Opts,
H A DXRefs.cpp213 L.uri = URIForFile::canonicalize(*FilePath, TUPath);
231 URIForFile::canonicalize(Inc.Resolved, MainFilePath), Range{}}; in makeLocation()
847 URIForFile::canonicalize(Inc.Resolved, AST.tuPath())})); in getDocumentLinks()
1316 URIForFile URIMainFile) { in getOverriddenMethods()
1368 auto URIMainFile = URIForFile::canonicalize(MainFilePath, MainFilePath); in maybeFindIncludeReferences()
1702 HI.uri = URIForFile::canonicalize(*FilePath, TUPath); in declToHierarchyItem()
H A DClangdLSPServer.h136 Callback<std::optional<URIForFile>>);
/llvm-project/mlir/lib/Tools/lsp-server-support/
H A DProtocol.cpp225 llvm::Expected<URIForFile> URIForFile::fromURI(StringRef uri) { in fromURI()
229 return URIForFile(std::move(*filePath), uri.str()); in fromURI()
232 llvm::Expected<URIForFile> URIForFile::fromFile(StringRef absoluteFilepath, in fromFile()
241 StringRef URIForFile::scheme() const { return uri().split(':').first; } in scheme()
243 void URIForFile::registerSupportedScheme(StringRef scheme) { in registerSupportedScheme()
247 bool mlir::lsp::fromJSON(const llvm::json::Value &value, URIForFile &result, in fromJSON()
250 llvm::Expected<URIForFile> expectedURI = URIForFile::fromURI(*str); in fromJSON()
262 llvm::json::Value mlir::lsp::toJSON(const URIForFile &value) { in toJSON()
266 raw_ostream &mlir::lsp::operator<<(raw_ostream &os, const URIForFile &value) { in operator <<()
H A DCompilationDatabase.cpp49 if (Expected<lsp::URIForFile> uri = in mapping()
50 lsp::URIForFile::fromFile(info.filename)) in mapping()
H A DSourceMgrUtils.cpp147 llvm::Expected<URIForFile> includedFileURI = URIForFile::fromFile(path); in gatherIncludeFiles()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DSymbolInfoTests.cpp382 Decl = Location{URIForFile::canonicalize(testPath(TU.Filename), ""), in TEST()
385 Def = Location{URIForFile::canonicalize(testPath(TU.Filename), ""), in TEST()
H A DLSPClient.cpp223 return toJSON(URIForFile::canonicalize(Path, Path)); in uri()
H A DDiagnosticsTests.cpp1134 URIForFile MainFile = in TEST()
1135 URIForFile::canonicalize(testPath("foo/bar/main.cpp"), ""); in TEST()
1136 URIForFile HeaderFile = in TEST()
1137 URIForFile::canonicalize(testPath("foo/bar/header.h"), ""); in TEST()
H A DXRefsTests.cpp49 return Location{URIForFile::canonicalize(File, testRoot()), Range} == arg;
2629 URIForFile::canonicalize(testPath("foo.h"), "")}),
2631 URIForFile::canonicalize(testPath("bar.h"), "")})));

12