Home
last modified time | relevance | path

Searched refs:PathRef (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/
DClangdServer.h66 virtual void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in onDiagnosticsReady()
70 virtual void onFileUpdated(PathRef File, const TUStatus &Status) {} in onFileUpdated()
75 onHighlightingsReady(PathRef File, llvm::StringRef Version, in onHighlightingsReady()
181 void addDocument(PathRef File, StringRef Contents,
190 void removeDocument(PathRef File);
200 void codeComplete(PathRef File, Position Pos,
206 void signatureHelp(PathRef File, Position Pos, Callback<SignatureHelp> CB);
209 void locateSymbolAt(PathRef File, Position Pos,
214 void switchSourceHeader(PathRef Path,
218 void findDocumentHighlights(PathRef File, Position Pos,
[all …]
DGlobalCompilationDatabase.h41 getCompileCommand(PathRef File) const = 0;
44 virtual llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const { in getProjectInfo()
51 virtual tooling::CompileCommand getFallbackCommand(PathRef File) const;
77 getCompileCommand(PathRef File) const override;
81 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
99 PathRef FileName;
132 getCompileCommand(PathRef File) const override;
133 tooling::CompileCommand getFallbackCommand(PathRef File) const override;
136 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
140 setCompileCommand(PathRef File,
DTUScheduler.h117 FileStatus render(PathRef File) const;
132 virtual void onPreambleAST(PathRef Path, llvm::StringRef Version, in onPreambleAST()
160 virtual void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) {} in onMainAST()
164 virtual void onFailedAST(PathRef Path, llvm::StringRef Version, in onFailedAST()
168 virtual void onFileUpdated(PathRef File, const TUStatus &Status) {} in onFileUpdated()
203 std::function<Context(PathRef)> ContextProvider;
232 bool update(PathRef File, ParseInputs Inputs, WantDiagnostics WD);
237 void remove(PathRef File);
266 void runWithAST(llvm::StringRef Name, PathRef File,
291 void runWithPreamble(llvm::StringRef Name, PathRef File,
DGlobalCompilationDatabase.cpp36 void actOnAllParentDirectories(PathRef FileName, in actOnAllParentDirectories()
37 llvm::function_ref<bool(PathRef)> Action) { in actOnAllParentDirectories()
47 GlobalCompilationDatabase::getFallbackCommand(PathRef File) const { in getFallbackCommand()
179 DirectoryBasedGlobalCompilationDatabase::getCompileCommand(PathRef File) const { in getCompileCommand()
203 static std::string maybeCaseFoldPath(PathRef Path) { in maybeCaseFoldPath()
211 static bool pathEqual(PathRef A, PathRef B) { in pathEqual()
254 actOnAllParentDirectories(CanonicalPath, [&](PathRef Path) { in lookupCDB()
300 actOnAllParentDirectories(File, [&](PathRef Path) { in broadcastCDB()
321 actOnAllParentDirectories(File, [&](PathRef Path) { in broadcastCDB()
337 DirectoryBasedGlobalCompilationDatabase::getProjectInfo(PathRef File) const { in getProjectInfo()
[all …]
DClangdServer.cpp73 void onPreambleAST(PathRef Path, llvm::StringRef Version, ASTContext &Ctx, in onPreambleAST()
80 void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) override { in onMainAST()
99 void onFailedAST(PathRef Path, llvm::StringRef Version, in onFailedAST()
106 void onFileUpdated(PathRef File, const TUStatus &Status) override { in onFileUpdated()
161 O.ContextProvider = [this](PathRef P) { in ClangdServer()
186 BGOpts.ContextProvider = [this](PathRef P) { in __anonb0c0fe120802()
201 void ClangdServer::addDocument(PathRef File, llvm::StringRef Contents, in addDocument()
224 void ClangdServer::removeDocument(PathRef File) { WorkScheduler.remove(File); } in removeDocument()
226 void ClangdServer::codeComplete(PathRef File, Position Pos, in codeComplete()
291 void ClangdServer::signatureHelp(PathRef File, Position Pos, in signatureHelp()
[all …]
DDraftStore.h37 llvm::Optional<Draft> getDraft(PathRef File) const;
45 int64_t addDraft(PathRef File, llvm::Optional<int64_t> Version,
56 updateDraft(PathRef File, llvm::Optional<int64_t> Version,
60 void removeDraft(PathRef File);
DDraftStore.cpp17 llvm::Optional<DraftStore::Draft> DraftStore::getDraft(PathRef File) const { in getDraft()
50 int64_t DraftStore::addDraft(PathRef File, llvm::Optional<int64_t> Version, in addDraft()
61 PathRef File, llvm::Optional<int64_t> Version, in updateDraft()
128 void DraftStore::removeDraft(PathRef File) { in removeDraft()
DXRefs.h107 const SymbolIndex *Index = nullptr, PathRef TUPath = PathRef{});
115 prepareCallHierarchy(ParsedAST &AST, Position Pos, PathRef TUPath);
DPreamble.h82 buildPreamble(PathRef FileName, CompilerInvocation CI,
91 const ParseInputs &Inputs, PathRef FileName,
DCodeComplete.h297 CodeCompleteResult codeComplete(PathRef FileName, Position Pos,
304 SignatureHelp signatureHelp(PathRef FileName, Position Pos,
DHeaderSourceSwitch.cpp30 llvm::find_if(SourceExtensions, [&PathExt](PathRef SourceExt) { in getCorrespondingHeaderOrSource()
36 llvm::find_if(HeaderExtensions, [&PathExt](PathRef HeaderExt) { in getCorrespondingHeaderOrSource()
DClangdLSPServer.h78 void onDiagnosticsReady(PathRef File, llvm::StringRef Version,
80 void onFileUpdated(PathRef File, const TUStatus &Status) override;
82 onHighlightingsReady(PathRef File, llvm::StringRef Version,
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSyncAPI.h25 void runAddDocument(ClangdServer &Server, PathRef File, StringRef Contents,
31 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos,
35 PathRef File, Position Pos);
38 runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos);
41 runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos);
43 llvm::Expected<RenameResult> runRename(ClangdServer &Server, PathRef File,
48 runPrepareRename(ClangdServer &Server, PathRef File, Position Pos,
53 runFormatFile(ClangdServer &Server, PathRef File, StringRef Code);
60 runSemanticRanges(ClangdServer &Server, PathRef File,
64 runSwitchHeaderSource(ClangdServer &Server, PathRef File);
[all …]
DSyncAPI.cpp15 void runAddDocument(ClangdServer &Server, PathRef File, in runAddDocument()
72 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, in runCodeComplete()
80 PathRef File, Position Pos) { in runSignatureHelp()
87 runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos) { in runLocateSymbolAt()
94 runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos) { in runFindDocumentHighlights()
100 llvm::Expected<RenameResult> runRename(ClangdServer &Server, PathRef File, in runRename()
109 runPrepareRename(ClangdServer &Server, PathRef File, Position Pos, in runPrepareRename()
118 runFormatFile(ClangdServer &Server, PathRef File, StringRef Code) { in runFormatFile()
146 runSemanticRanges(ClangdServer &Server, PathRef File, in runSemanticRanges()
154 runSwitchHeaderSource(ClangdServer &Server, PathRef File) { in runSwitchHeaderSource()
[all …]
DTestFS.h66 getCompileCommand(PathRef File) const override;
68 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
81 std::string testPath(PathRef File,
DTestFS.cpp44 MockCompilationDatabase::getProjectInfo(PathRef File) const { in getProjectInfo()
49 MockCompilationDatabase::getCompileCommand(PathRef File) const { in getCompileCommand()
82 std::string testPath(PathRef File, llvm::sys::path::Style Style) { in testPath()
DTUSchedulerTests.cpp70 Context bindPath(PathRef F) { in bindPath()
86 ParseInputs getInputs(PathRef File, std::string Contents) { in getInputs()
95 void updateWithCallback(TUScheduler &S, PathRef File, in updateWithCallback()
102 void updateWithCallback(TUScheduler &S, PathRef File, ParseInputs Inputs, in updateWithCallback()
109 static Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
117 void onMainAST(PathRef File, ParsedAST &AST, PublishFn Publish) override { in captureDiags()
121 void onFailedAST(PathRef File, llvm::StringRef Version, in captureDiags()
127 void reportDiagnostics(PathRef File, llvm::ArrayRef<Diag> Diags, in captureDiags()
134 llvm::unique_function<void(PathRef, std::vector<Diag>)> &> (*D)( in captureDiags()
145 void updateWithDiags(TUScheduler &S, PathRef File, ParseInputs Inputs, in updateWithDiags()
[all …]
DClangdTests.cpp79 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in onDiagnosticsReady()
100 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in onDiagnosticsReady()
148 std::string dumpAST(ClangdServer &Server, PathRef File) { in dumpAST()
165 std::string dumpASTWithoutMemoryLocs(ClangdServer &Server, PathRef File) { in dumpASTWithoutMemoryLocs()
170 PathRef SourceFileRelPath, llvm::StringRef SourceContents, in parseSourceAndDumpAST()
171 std::vector<std::pair<PathRef, llvm::StringRef>> ExtraFiles = {}, in parseSourceAndDumpAST() argument
309 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST()
374 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST()
692 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST()
871 void onDiagnosticsReady(PathRef, llvm::StringRef, in TEST() argument
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/
DBackgroundIndexLoader.cpp34 void load(PathRef MainFile);
44 loadShard(PathRef StartSourceFile, PathRef DependentTU);
53 BackgroundIndexLoader::loadShard(PathRef StartSourceFile, PathRef DependentTU) { in loadShard()
93 void BackgroundIndexLoader::load(PathRef MainFile) { in load()
96 std::queue<PathRef> ToVisit; in load()
101 PathRef SourceFile = ToVisit.front(); in load()
105 for (PathRef Edge : ShardAndEdges.second) { in load()
DBackgroundIndexStorage.cpp103 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo) in DiskBackedIndexStorageManager()
113 BackgroundIndexStorage *operator()(PathRef File) { in operator ()()
127 std::unique_ptr<BackgroundIndexStorage> create(PathRef CDBDirectory) { in create()
140 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo;
147 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo) { in createDiskBackedStorageFactory()
DBackground.h58 using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>;
65 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo);
141 std::function<Context(PathRef)> ContextProvider = nullptr;
196 std::function<Context(PathRef)> ContextProvider;
DFileIndex.h114 void updatePreamble(PathRef Path, llvm::StringRef Version, ASTContext &AST,
120 void updateMain(PathRef Path, ParsedAST &AST);
/external/llvm-project/clang-tools-extra/clangd/support/
DFileCache.h44 FileCache(PathRef Path);
64 PathRef path() const { return Path; } in path()
DPath.h23 using PathRef = llvm::StringRef; variable
/external/llvm-project/lldb/source/Host/linux/
DHost.cpp180 llvm::StringRef PathRef = ExePath; in GetExePathAndArch() local
181 PathRef.consume_back(" (deleted)"); in GetExePathAndArch()
183 if (!PathRef.empty()) { in GetExePathAndArch()
184 process_info.GetExecutableFile().SetFile(PathRef, FileSpec::Style::native); in GetExePathAndArch()
185 process_info.SetArchitecture(GetELFProcessCPUType(PathRef)); in GetExePathAndArch()

12