|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp 610 PathRef File = Params.textDocument.uri.file();
625 PathRef File = Params.textDocument.uri.file();
776 PathRef File = Params.textDocument.uri.file();
1116 PathRef File = Entry.first;
1302 PathRef File, std::vector<HighlightingToken> Highlightings) {
1318 void ClangdLSPServer::onDiagnosticsReady(PathRef File,
1342 void ClangdLSPServer::onFileUpdated(PathRef File, const TUStatus &Status) {
tools/clang/tools/extra/clangd/ClangdLSPServer.h 58 void onDiagnosticsReady(PathRef File, std::vector<Diag> Diagnostics) override;
59 void onFileUpdated(PathRef File, const TUStatus &Status) override;
61 onHighlightingsReady(PathRef File,
tools/clang/tools/extra/clangd/ClangdServer.cpp 64 void onPreambleAST(PathRef Path, ASTContext &Ctx,
71 void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) override {
87 void onFailedAST(PathRef Path, std::vector<Diag> Diags,
92 void onFileUpdated(PathRef File, const TUStatus &Status) override {
156 void ClangdServer::addDocument(PathRef File, llvm::StringRef Contents,
179 void ClangdServer::removeDocument(PathRef File) { WorkScheduler.remove(File); }
181 llvm::StringRef ClangdServer::getDocument(PathRef File) const {
185 void ClangdServer::codeComplete(PathRef File, Position Pos,
246 void ClangdServer::signatureHelp(PathRef File, Position Pos,
269 ClangdServer::formatRange(llvm::StringRef Code, PathRef File, Range Rng) {
280 ClangdServer::formatFile(llvm::StringRef Code, PathRef File) {
286 ClangdServer::formatOnType(llvm::StringRef Code, PathRef File, Position Pos,
304 void ClangdServer::prepareRename(PathRef File, Position Pos,
332 void ClangdServer::rename(PathRef File, Position Pos, llvm::StringRef NewName,
373 void ClangdServer::enumerateTweaks(PathRef File, Range Sel,
392 void ClangdServer::applyTweak(PathRef File, Range Sel, StringRef TweakID,
420 void ClangdServer::dumpAST(PathRef File,
440 void ClangdServer::locateSymbolAt(PathRef File, Position Pos,
453 PathRef Path, Callback<llvm::Optional<clangd::Path>> CB) {
473 ClangdServer::formatCode(llvm::StringRef Code, PathRef File,
491 PathRef File, Position Pos, Callback<std::vector<DocumentHighlight>> CB) {
502 void ClangdServer::findHover(PathRef File, Position Pos,
516 void ClangdServer::typeHierarchy(PathRef File, Position Pos, int Resolve,
564 void ClangdServer::findReferences(PathRef File, Position Pos, uint32_t Limit,
576 void ClangdServer::symbolInfo(PathRef File, Position Pos,
588 void ClangdServer::semanticRanges(PathRef File, Position Pos,
tools/clang/tools/extra/clangd/ClangdServer.h 48 virtual void onDiagnosticsReady(PathRef File,
51 virtual void onFileUpdated(PathRef File, const TUStatus &Status){};
55 onHighlightingsReady(PathRef File,
164 void addDocument(PathRef File, StringRef Contents,
168 llvm::StringRef getDocument(PathRef File) const;
173 void removeDocument(PathRef File);
183 void codeComplete(PathRef File, Position Pos,
189 void signatureHelp(PathRef File, Position Pos, Callback<SignatureHelp> CB);
192 void locateSymbolAt(PathRef File, Position Pos,
197 void switchSourceHeader(PathRef Path,
201 void findDocumentHighlights(PathRef File, Position Pos,
205 void findHover(PathRef File, Position Pos,
209 void typeHierarchy(PathRef File, Position Pos, int Resolve,
227 void findReferences(PathRef File, Position Pos, uint32_t Limit,
232 PathRef File, Range Rng);
236 PathRef File);
241 PathRef File, Position Pos,
245 void prepareRename(PathRef File, Position Pos,
253 void rename(PathRef File, Position Pos, llvm::StringRef NewName,
262 void enumerateTweaks(PathRef File, Range Sel,
266 void applyTweak(PathRef File, Range Sel, StringRef ID,
272 void dumpAST(PathRef File, llvm::unique_function<void(std::string)> Callback);
278 void symbolInfo(PathRef File, Position Pos,
282 void semanticRanges(PathRef File, Position Pos,
303 formatCode(llvm::StringRef Code, PathRef File,
tools/clang/tools/extra/clangd/CodeComplete.cpp 1018 PathRef FileName;
1204 PathRef FileName;
1238 CodeCompleteFlow(PathRef FileName, const IncludeStructure &Includes,
1731 codeComplete(PathRef FileName, const tooling::CompileCommand &Command,
1749 SignatureHelp signatureHelp(PathRef FileName,
tools/clang/tools/extra/clangd/CodeComplete.h 250 CodeCompleteResult codeComplete(PathRef FileName,
259 SignatureHelp signatureHelp(PathRef FileName,
tools/clang/tools/extra/clangd/DraftStore.cpp 16 llvm::Optional<std::string> DraftStore::getDraft(PathRef File) const {
36 void DraftStore::addDraft(PathRef File, llvm::StringRef Contents) {
43 PathRef File, llvm::ArrayRef<TextDocumentContentChangeEvent> Changes) {
111 void DraftStore::removeDraft(PathRef File) {
tools/clang/tools/extra/clangd/DraftStore.h 30 llvm::Optional<std::string> getDraft(PathRef File) const;
36 void addDraft(PathRef File, StringRef Contents);
45 updateDraft(PathRef File,
49 void removeDraft(PathRef File);
tools/clang/tools/extra/clangd/FS.cpp 114 Path removeDots(PathRef File) {
tools/clang/tools/extra/clangd/FS.h 74 Path removeDots(PathRef File);
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp 56 void actOnAllParentDirectories(PathRef FileName,
57 llvm::function_ref<bool(PathRef)> Action) {
77 GlobalCompilationDatabase::getFallbackCommand(PathRef File) const {
102 DirectoryBasedGlobalCompilationDatabase::getCompileCommand(PathRef File) const {
126 static std::string maybeCaseFoldPath(PathRef Path) {
134 static bool pathEqual(PathRef A, PathRef B) {
134 static bool pathEqual(PathRef A, PathRef B) {
143 DirectoryBasedGlobalCompilationDatabase::getCDBInDirLocked(PathRef Dir) const {
254 DirectoryBasedGlobalCompilationDatabase::getProjectInfo(PathRef File) const {
277 OverlayCDB::getCompileCommand(PathRef File) const {
293 tooling::CompileCommand OverlayCDB::getFallbackCommand(PathRef File) const {
304 PathRef File, llvm::Optional<tooling::CompileCommand> Cmd) {
319 llvm::Optional<ProjectInfo> OverlayCDB::getProjectInfo(PathRef File) const {
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.h 40 getCompileCommand(PathRef File) const = 0;
43 virtual llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const {
50 virtual tooling::CompileCommand getFallbackCommand(PathRef File) const;
76 getCompileCommand(PathRef File) const override;
80 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
89 CachedCDB &getCDBInDirLocked(PathRef File) const;
92 PathRef FileName;
132 getCompileCommand(PathRef File) const override;
133 tooling::CompileCommand getFallbackCommand(PathRef File) const override;
134 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
138 setCompileCommand(PathRef File,
tools/clang/tools/extra/clangd/Headers.cpp 177 PathRef DeclaringHeader, const HeaderFile &InsertedHeader) const {
tools/clang/tools/extra/clangd/Headers.h 167 bool shouldInsertInclude(PathRef DeclaringHeader,
tools/clang/tools/extra/clangd/ParsedAST.cpp 505 buildAST(PathRef FileName, std::unique_ptr<CompilerInvocation> Invocation,
tools/clang/tools/extra/clangd/ParsedAST.h 139 buildAST(PathRef FileName, std::unique_ptr<CompilerInvocation> Invocation,
tools/clang/tools/extra/clangd/Preamble.cpp 29 CppFilePreambleCallbacks(PathRef File, PreambleParsedCallback ParsedCallback)
66 PathRef File;
89 buildPreamble(PathRef FileName, CompilerInvocation &CI,
tools/clang/tools/extra/clangd/Preamble.h 78 buildPreamble(PathRef FileName, CompilerInvocation &CI,
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 88 std::vector<std::string> extractSystemIncludes(PathRef Driver,
215 getCompileCommand(PathRef File) const override {
257 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override {
tools/clang/tools/extra/clangd/TUScheduler.cpp 165 ASTWorker(PathRef FileName, const GlobalCompilationDatabase &CDB,
177 create(PathRef FileName, const GlobalCompilationDatabase &CDB,
327 ASTWorker::create(PathRef FileName, const GlobalCompilationDatabase &CDB,
341 ASTWorker::ASTWorker(PathRef FileName, const GlobalCompilationDatabase &CDB,
832 FileStatus TUStatus::render(PathRef File) const {
884 bool TUScheduler::update(PathRef File, ParseInputs Inputs,
903 void TUScheduler::remove(PathRef File) {
910 llvm::StringRef TUScheduler::getContents(PathRef File) const {
931 llvm::StringRef Name, PathRef File,
943 void TUScheduler::runWithPreamble(llvm::StringRef Name, PathRef File,
tools/clang/tools/extra/clangd/TUScheduler.h 89 FileStatus render(PathRef File) const;
102 virtual void onPreambleAST(PathRef Path, ASTContext &Ctx,
129 virtual void onMainAST(PathRef Path, ParsedAST &AST, PublishFn Publish) {}
133 virtual void onFailedAST(PathRef Path, std::vector<Diag> Diags,
137 virtual void onFileUpdated(PathRef File, const TUStatus &Status) {}
172 bool update(PathRef File, ParseInputs Inputs, WantDiagnostics WD);
177 void remove(PathRef File);
181 llvm::StringRef getContents(PathRef File) const;
194 void runWithAST(llvm::StringRef Name, PathRef File,
223 void runWithPreamble(llvm::StringRef Name, PathRef File,
tools/clang/tools/extra/clangd/XRefs.cpp 1085 PathRef TUPath) {
1110 const SymbolIndex *Index, int Levels, PathRef TUPath) {
1217 PathRef TUPath) {
tools/clang/tools/extra/clangd/XRefs.h 145 const SymbolIndex *Index = nullptr, PathRef TUPath = PathRef{});
tools/clang/tools/extra/clangd/index/Background.cpp 485 llvm::DenseSet<PathRef> TUsToIndex;
491 PathRef TUForFile = LS.DependentTU;
502 for (PathRef TU : TUsToIndex) {
tools/clang/tools/extra/clangd/index/Background.h 56 using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>;
63 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo);
tools/clang/tools/extra/clangd/index/BackgroundIndexLoader.cpp 34 void load(PathRef MainFile);
44 loadShard(PathRef StartSourceFile, PathRef DependentTU);
44 loadShard(PathRef StartSourceFile, PathRef DependentTU);
53 BackgroundIndexLoader::loadShard(PathRef StartSourceFile, PathRef DependentTU) {
53 BackgroundIndexLoader::loadShard(PathRef StartSourceFile, PathRef DependentTU) {
93 void BackgroundIndexLoader::load(PathRef MainFile) {
96 std::queue<PathRef> ToVisit;
101 PathRef SourceFile = ToVisit.front();
105 for (PathRef Edge : ShardAndEdges.second) {
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp 106 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo)
115 BackgroundIndexStorage *operator()(PathRef File) {
127 std::unique_ptr<BackgroundIndexStorage> create(PathRef CDBDirectory) {
140 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo;
147 std::function<llvm::Optional<ProjectInfo>(PathRef)> GetProjectInfo) {
tools/clang/tools/extra/clangd/index/FileIndex.cpp 95 void FileSymbols::update(PathRef Path, std::unique_ptr<SymbolSlab> Symbols,
242 void FileIndex::updatePreamble(PathRef Path, ASTContext &AST,
256 void FileIndex::updateMain(PathRef Path, ParsedAST &AST) {
tools/clang/tools/extra/clangd/index/FileIndex.h 66 void update(PathRef Path, std::unique_ptr<SymbolSlab> Slab,
100 void updatePreamble(PathRef Path, ASTContext &AST,
106 void updateMain(PathRef Path, ParsedAST &AST);
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp 64 void onDiagnosticsReady(PathRef File,
85 void onDiagnosticsReady(PathRef File,
133 std::string dumpASTWithoutMemoryLocs(ClangdServer &Server, PathRef File) {
141 PathRef SourceFileRelPath, llvm::StringRef SourceContents,
142 std::vector<std::pair<PathRef, llvm::StringRef>> ExtraFiles = {},
278 void onDiagnosticsReady(PathRef File,
596 void onDiagnosticsReady(PathRef File,
776 void onDiagnosticsReady(PathRef, std::vector<Diag>) override {
1040 getCompileCommand(PathRef File) const override {
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 49 void onDiagnosticsReady(PathRef File,
120 PathRef FilePath = "foo.cpp") {
141 PathRef FilePath = "foo.cpp") {
155 PathRef FilePath = "foo.cpp") {
tools/clang/tools/extra/clangd/unittests/FindSymbolsTests.cpp 29 void onDiagnosticsReady(PathRef File,
331 std::vector<DocumentSymbol> getSymbols(PathRef File) {
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp 79 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override {
217 void registerFile(PathRef RelativePath, llvm::StringRef Contents) {
tools/clang/tools/extra/clangd/unittests/HeaderSourceSwitchTests.cpp 253 void onDiagnosticsReady(PathRef File,
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp 78 std::string calculate(PathRef Original, PathRef Preferred = "",
78 std::string calculate(PathRef Original, PathRef Preferred = "",
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp 622 void onDiagnosticsReady(PathRef, std::vector<Diag>) override {}
624 PathRef File, std::vector<HighlightingToken> Highlightings) override {
tools/clang/tools/extra/clangd/unittests/SemanticSelectionTests.cpp 30 void onDiagnosticsReady(PathRef File,
tools/clang/tools/extra/clangd/unittests/SyncAPI.cpp 15 void runAddDocument(ClangdServer &Server, PathRef File,
71 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos,
79 PathRef File, Position Pos) {
86 runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos) {
93 runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos) {
100 PathRef File, Position Pos,
107 std::string runDumpAST(ClangdServer &Server, PathRef File) {
121 runDocumentSymbols(ClangdServer &Server, PathRef File) {
149 runSemanticRanges(ClangdServer &Server, PathRef File, Position Pos) {
156 runSwitchHeaderSource(ClangdServer &Server, PathRef File) {
tools/clang/tools/extra/clangd/unittests/SyncAPI.h 25 void runAddDocument(ClangdServer &Server, PathRef File, StringRef Contents,
29 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos,
33 PathRef File, Position Pos);
36 runLocateSymbolAt(ClangdServer &Server, PathRef File, Position Pos);
39 runFindDocumentHighlights(ClangdServer &Server, PathRef File, Position Pos);
42 runRename(ClangdServer &Server, PathRef File, Position Pos, StringRef NewName);
44 std::string runDumpAST(ClangdServer &Server, PathRef File);
50 PathRef File);
57 runSemanticRanges(ClangdServer &Server, PathRef File, Position Pos);
60 runSwitchHeaderSource(ClangdServer &Server, PathRef File);
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp 47 ParseInputs getInputs(PathRef File, std::string Contents) {
56 void updateWithCallback(TUScheduler &S, PathRef File,
63 static Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
71 void onMainAST(PathRef File, ParsedAST &AST, PublishFn Publish) override {
75 void onFailedAST(PathRef File, std::vector<Diag> Diags,
81 void reportDiagnostics(PathRef File, llvm::ArrayRef<Diag> Diags,
99 void updateWithDiags(TUScheduler &S, PathRef File, ParseInputs Inputs,
112 void updateWithDiags(TUScheduler &S, PathRef File, llvm::StringRef Contents,
124 Key<llvm::unique_function<void(PathRef File, std::vector<Diag>)>>
705 void onDiagnosticsReady(PathRef File,
708 void onFileUpdated(PathRef File, const TUStatus &Status) override {
tools/clang/tools/extra/clangd/unittests/TestFS.cpp 44 MockCompilationDatabase::getProjectInfo(PathRef File) const {
49 MockCompilationDatabase::getCompileCommand(PathRef File) const {
82 std::string testPath(PathRef File) {
tools/clang/tools/extra/clangd/unittests/TestFS.h 53 getCompileCommand(PathRef File) const override;
55 llvm::Optional<ProjectInfo> getProjectInfo(PathRef File) const override;
68 std::string testPath(PathRef File);
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp 46 void onDiagnosticsReady(PathRef File,