| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ClangdServer.h | 91 static std::function<Context(PathRef)> 215 void removeDocument(PathRef File); 227 void codeComplete(PathRef File, Position Pos, 237 void locateSymbolAt(PathRef File, Position Pos, 242 void switchSourceHeader(PathRef Path, 250 void findHover(PathRef File, Position Pos, 297 void findType(PathRef File, Position Pos, 317 void prepareRename(PathRef File, Position Pos, 337 void enumerateTweaks(PathRef File, Range Sel, 350 void symbolInfo(PathRef File, Position Pos, [all …]
|
| H A D | GlobalCompilationDatabase.h | 40 getCompileCommand(PathRef File) const = 0; 43 virtual llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const { in getProjectInfo() 50 virtual tooling::CompileCommand getFallbackCommand(PathRef File) const; 74 getCompileCommand(PathRef File) const override; 76 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override; 78 tooling::CompileCommand getFallbackCommand(PathRef File) const override; 118 getCompileCommand(PathRef File) const override; 122 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override; 139 PathRef FileName; 182 getCompileCommand(PathRef File) const override; [all …]
|
| H A D | TUScheduler.h | 149 FileStatus render(PathRef File) const; 164 virtual void onPreambleAST(PathRef Path, llvm::StringRef Version, in onPreambleAST() 191 virtual void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) {} in onMainAST() 195 virtual void onFailedAST(PathRef Path, llvm::StringRef Version, in onFailedAST() 199 virtual void onFileUpdated(PathRef File, const TUStatus &Status) {} in onFileUpdated() 204 virtual void onPreamblePublished(PathRef File) {} in onPreamblePublished() 238 std::function<Context(PathRef)> ContextProvider; 267 bool update(PathRef File, ParseInputs Inputs, WantDiagnostics WD); 272 void remove(PathRef File); 305 void runWithAST(llvm::StringRef Name, PathRef File, [all …]
|
| H A D | ClangdServer.cpp | 68 void onPreambleAST(PathRef Path, llvm::StringRef Version, in onPreambleAST() 110 void onFailedAST(PathRef Path, llvm::StringRef Version, in onFailedAST() 122 void onPreamblePublished(PathRef File) override { in onPreamblePublished() 288 std::function<Context(PathRef)> 365 void ClangdServer::removeDocument(PathRef File) { in removeDocument() 370 void ClangdServer::codeComplete(PathRef File, Position Pos, in codeComplete() 502 void ClangdServer::formatOnType(PathRef File, Position Pos, in formatOnType() 738 void ClangdServer::findHover(PathRef File, Position Pos, in findHover() 898 void ClangdServer::symbolInfo(PathRef File, Position Pos, in symbolInfo() 910 void ClangdServer::semanticRanges(PathRef File, in semanticRanges() [all …]
|
| H A D | DraftStore.h | 36 llvm::Optional<Draft> getDraft(PathRef File) const; 44 std::string addDraft(PathRef File, llvm::StringRef Version, 48 void removeDraft(PathRef File);
|
| H A D | GlobalCompilationDatabase.cpp | 44 void actOnAllParentDirectories(PathRef FileName, in actOnAllParentDirectories() 45 llvm::function_ref<bool(PathRef)> Action) { in actOnAllParentDirectories() 54 GlobalCompilationDatabase::getFallbackCommand(PathRef File) const { in getFallbackCommand() 245 parseJSON(PathRef Path, llvm::StringRef Data, std::string &Error) { in parseJSON() 261 parseFixed(PathRef Path, llvm::StringRef Data, std::string &Error) { in parseFixed() 279 PathRef, in load() 729 DirectoryBasedGlobalCompilationDatabase::getProjectInfo(PathRef File) const { in getProjectInfo() 748 OverlayCDB::getCompileCommand(PathRef File) const { in getCompileCommand() 765 tooling::CompileCommand OverlayCDB::getFallbackCommand(PathRef File) const { in getFallbackCommand() 776 PathRef File, llvm::Optional<tooling::CompileCommand> Cmd) { in setCompileCommand() [all …]
|
| H A D | HeaderSourceSwitch.cpp | 21 PathRef OriginalFile, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in getCorrespondingHeaderOrSource() 30 llvm::find_if(SourceExtensions, [&PathExt](PathRef SourceExt) { in getCorrespondingHeaderOrSource() 36 llvm::find_if(HeaderExtensions, [&PathExt](PathRef HeaderExt) { in getCorrespondingHeaderOrSource() 70 llvm::Optional<Path> getCorrespondingHeaderOrSource(PathRef OriginalFile, in getCorrespondingHeaderOrSource()
|
| H A D | HeaderSourceSwitch.h | 21 PathRef OriginalFile, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS); 25 llvm::Optional<Path> getCorrespondingHeaderOrSource(PathRef OriginalFile,
|
| H A D | XRefs.h | 128 const SymbolIndex *Index = nullptr, PathRef TUPath = PathRef{}); 144 prepareCallHierarchy(ParsedAST &AST, Position Pos, PathRef TUPath);
|
| H A D | DraftStore.cpp | 18 llvm::Optional<DraftStore::Draft> DraftStore::getDraft(PathRef File) const { in getDraft() 74 std::string DraftStore::addDraft(PathRef File, llvm::StringRef Version, in addDraft() 85 void DraftStore::removeDraft(PathRef File) { in removeDraft()
|
| H A D | Preamble.h | 101 buildPreamble(PathRef FileName, CompilerInvocation CI, 111 const ParseInputs &Inputs, PathRef FileName,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | Path.cpp | 15 std::string maybeCaseFoldPath(PathRef Path) { return Path.lower(); } in maybeCaseFoldPath() 16 bool pathEqual(PathRef A, PathRef B) { return A.equals_insensitive(B); } in pathEqual() 18 std::string maybeCaseFoldPath(PathRef Path) { return Path.str(); } 19 bool pathEqual(PathRef A, PathRef B) { return A == B; } 22 PathRef absoluteParent(PathRef Path) { in absoluteParent() 28 return PathRef(); in absoluteParent() 31 PathRef Result = llvm::sys::path::parent_path(Path); in absoluteParent() 36 bool pathStartsWith(PathRef Ancestor, PathRef Path, in pathStartsWith()
|
| H A D | Path.h | 29 using PathRef = llvm::StringRef; variable 34 std::string maybeCaseFoldPath(PathRef Path); 35 bool pathEqual(PathRef, PathRef); 41 PathRef Ancestor, PathRef Path, 46 PathRef absoluteParent(PathRef Path);
|
| H A D | FileCache.h | 42 FileCache(PathRef Path); 62 PathRef path() const { return Path; } in path()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SyncAPI.h | 26 void runAddDocument(ClangdServer &Server, PathRef File, StringRef Contents, 32 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, 36 PathRef File, Position Pos, 40 runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos); 43 runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos); 45 llvm::Expected<RenameResult> runRename(ClangdServer &Server, PathRef File, 50 runPrepareRename(ClangdServer &Server, PathRef File, Position Pos, 55 runFormatFile(ClangdServer &Server, PathRef File, llvm::Optional<Range>); 62 runSemanticRanges(ClangdServer &Server, PathRef File, 66 runSwitchHeaderSource(ClangdServer &Server, PathRef File); [all …]
|
| H A D | SyncAPI.cpp | 16 void runAddDocument(ClangdServer &Server, PathRef File, in runAddDocument() 71 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, in runCodeComplete() 79 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, llvm::Optional<Range> Rng) { in runFormatFile() 146 runSemanticRanges(ClangdServer &Server, PathRef File, in runSemanticRanges() 154 runSwitchHeaderSource(ClangdServer &Server, PathRef File) { in runSwitchHeaderSource() [all …]
|
| H A D | TestFS.cpp | 25 bool pathConsumeFront(PathRef &Path, PathRef Prefix) { in pathConsumeFront() 56 MockCompilationDatabase::getProjectInfo(PathRef File) const { in getProjectInfo() 61 MockCompilationDatabase::getCompileCommand(PathRef File) const { in getCompileCommand() 94 std::string testPath(PathRef File, llvm::sys::path::Style Style) { in testPath()
|
| H A D | TestFS.h | 64 getCompileCommand(PathRef File) const override; 66 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override; 79 std::string testPath(PathRef File,
|
| H A D | TUSchedulerTests.cpp | 75 Context bindPath(PathRef F) { in bindPath() 91 ParseInputs getInputs(PathRef File, std::string Contents) { in getInputs() 100 void updateWithCallback(TUScheduler &S, PathRef File, in updateWithCallback() 126 void onFailedAST(PathRef File, llvm::StringRef Version, in captureDiags() 132 void reportDiagnostics(PathRef File, llvm::ArrayRef<Diag> Diags, in captureDiags() 150 void updateWithDiags(TUScheduler &S, PathRef File, ParseInputs Inputs, in updateWithDiags() 174 Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>> 1126 void onPreambleAST(PathRef Path, llvm::StringRef Version, in TEST_F() 1207 getCompileCommand(PathRef File) const override { in TEST_F() 1227 auto GetFlags = [&](PathRef Header) { in TEST_F() [all …]
|
| H A D | ClangdTests.cpp | 78 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in onDiagnosticsReady() 99 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in onDiagnosticsReady() 147 std::string dumpAST(ClangdServer &Server, PathRef File) { in dumpAST() 169 PathRef SourceFileRelPath, llvm::StringRef SourceContents, in parseSourceAndDumpAST() 170 std::vector<std::pair<PathRef, llvm::StringRef>> ExtraFiles = {}, in parseSourceAndDumpAST() argument 308 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST() 374 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST() 691 void onDiagnosticsReady(PathRef File, llvm::StringRef Version, in TEST() 870 void onDiagnosticsReady(PathRef, llvm::StringRef, in TEST() argument 1115 getCompileCommand(PathRef File) const override { in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundIndexLoader.cpp | 31 void load(PathRef MainFile); 41 loadShard(PathRef StartSourceFile, PathRef DependentTU); 50 BackgroundIndexLoader::loadShard(PathRef StartSourceFile, PathRef DependentTU) { in loadShard() 90 void BackgroundIndexLoader::load(PathRef MainFile) { in load() 93 std::queue<PathRef> ToVisit; in load() 98 PathRef SourceFile = ToVisit.front(); in load() 102 for (PathRef Edge : ShardAndEdges.second) { in load()
|
| H A D | BackgroundIndexStorage.cpp | 101 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo) in DiskBackedIndexStorageManager() 111 BackgroundIndexStorage *operator()(PathRef File) { in operator ()() 125 std::unique_ptr<BackgroundIndexStorage> create(PathRef CDBDirectory) { in create() 138 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo; 145 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo) { in createDiskBackedStorageFactory()
|
| H A D | Background.h | 57 using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>; 64 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo); 146 std::function<Context(PathRef)> ContextProvider = nullptr; 200 std::function<Context(PathRef)> ContextProvider;
|
| H A D | FileIndex.h | 115 void updatePreamble(PathRef Path, llvm::StringRef Version, ASTContext &AST, 121 void updateMain(PathRef Path, ParsedAST &AST);
|
| /llvm-project-15.0.7/lldb/source/Host/linux/ |
| H A D | Host.cpp | 187 llvm::StringRef PathRef = ExePath; in GetExePathAndArch() local 188 PathRef.consume_back(" (deleted)"); in GetExePathAndArch() 190 if (!PathRef.empty()) { in GetExePathAndArch() 191 process_info.GetExecutableFile().SetFile(PathRef, FileSpec::Style::native); in GetExePathAndArch() 192 process_info.SetArchitecture(GetELFProcessCPUType(PathRef)); in GetExePathAndArch()
|