| /llvm-project-15.0.7/clang-tools-extra/clangd/tool/ |
| H A D | Check.cpp | 96 bool buildCommand(const ThreadsafeFS &TFS) { in buildCommand() argument 98 DirectoryBasedGlobalCompilationDatabase::Options CDBOpts(TFS); in buildCommand() 126 bool buildInvocation(const ThreadsafeFS &TFS, in buildInvocation() argument 131 Inputs.TFS = &TFS; in buildInvocation() 139 if (auto Contents = TFS.view(llvm::None)->getBufferForFile(File)) { in buildInvocation() 159 Style = getFormatStyleForFile(File, Inputs.Contents, TFS); in buildInvocation() 276 const ThreadsafeFS &TFS, const ClangdLSPServer::Options &Opts, in check() argument 301 if (!C.buildCommand(TFS) || !C.buildInvocation(TFS, Contents) || in check()
|
| H A D | ClangdMain.cpp | 65 const ThreadsafeFS &TFS, const ClangdLSPServer::Options &Opts, 923 RealThreadsafeFS TFS; in main() local 928 config::Provider::fromAncestorRelativeYAMLFiles(".clangd", TFS)); in main() 934 UserConfig, /*Directory=*/"", TFS, /*Trusted=*/true)); in main() 952 Providers.push_back(provideClangTidyFiles(TFS)); in main() 1004 return check(Path, CheckLineRange, TFS, Opts, in main() 1043 ClangdLSPServer LSPServer(*TransportLayer, TFS, Opts); in main()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | GlobalCompilationDatabase.h | 94 Options(const ThreadsafeFS &TFS) : TFS(TFS) {} in Options() 96 const ThreadsafeFS &TFS; member
|
| H A D | ClangdServer.cpp | 65 : FIndex(FIndex), ServerCallbacks(ServerCallbacks), TFS(TFS), in UpdateIndexCallbacks() 85 IF.Symbols = indexStandardLibrary(std::move(CI), Loc, TFS); in indexStdlib() 130 const ThreadsafeFS &TFS; member 176 : FeatureModules(Opts.FeatureModules), CDB(CDB), TFS(TFS), in ClangdServer() 184 DirtyFS(std::make_unique<DraftStoreFS>(TFS, DraftMgr)) { in ClangdServer() 192 DynamicIdx.get(), Callbacks, TFS, in ClangdServer() 214 TFS, CDB, in ClangdServer() 227 this->TFS, in ClangdServer() 257 Inputs.TFS = &getHeaderFS(); in addDocument() 682 getFormatStyleForFile(File, E.InitialCode, TFS); in applyTweak() [all …]
|
| H A D | TidyProvider.cpp | 39 get(const ThreadsafeFS &TFS, in get() argument 43 TFS, FreshTime, in get() 265 TidyProvider provideClangTidyFiles(ThreadsafeFS &TFS) { in provideClangTidyFiles() argument 266 return [Tree = std::make_unique<DotClangTidyTree>(TFS)]( in provideClangTidyFiles()
|
| H A D | ClangdServer.h | 187 ClangdServer(const GlobalCompilationDatabase &CDB, const ThreadsafeFS &TFS, 409 return UseDirtyHeaders ? *DirtyFS : TFS; in getHeaderFS() 411 const ThreadsafeFS &TFS; variable
|
| H A D | ConfigProvider.cpp | 37 void get(const ThreadsafeFS &TFS, DiagnosticCallback DC, in get() argument 41 TFS, FreshTime, in get()
|
| H A D | Compiler.h | 48 const ThreadsafeFS *TFS; member
|
| H A D | ClangdLSPServer.h | 65 ClangdLSPServer(Transport &Transp, const ThreadsafeFS &TFS, 252 const ThreadsafeFS &TFS; variable
|
| H A D | GlobalCompilationDatabase.cpp | 161 get(const ThreadsafeFS &TFS, bool &ShouldBroadcast, in get() argument 188 if (/*MayCache=*/load(*TFS.view(/*CWD=*/llvm::None))) { in get() 438 if ((CDB = Candidate->get(Opts.TFS, CandidateShouldBroadcast, in lookupCDB() 639 nullptr != Info->Cache->get(Parent.Opts.TFS, ShouldBroadcast, in shouldInclude()
|
| H A D | Compiler.cpp | 101 CIOpts.VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildCompilerInvocation()
|
| H A D | Preamble.cpp | 317 PI.TFS = &FS; in scanPreamble() 529 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildPreamble() 583 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in isPreambleCompatible()
|
| H A D | SourceCode.h | 175 const ThreadsafeFS &TFS);
|
| H A D | ParsedAST.cpp | 349 auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in build() 556 getFormatStyleForFile(Filename, Inputs.Contents, *Inputs.TFS); in build()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | StdLib.h | 94 const ThreadsafeFS &TFS); 101 const ThreadsafeFS &TFS);
|
| H A D | Background.cpp | 92 const ThreadsafeFS &TFS, const GlobalCompilationDatabase &CDB, in BackgroundIndex() argument 94 : SwapIndex(std::make_unique<MemIndex>()), TFS(TFS), CDB(CDB), in BackgroundIndex() 257 auto FS = TFS.view(Cmd.Directory); in index() 272 Inputs.TFS = &TFS; in index() 399 auto FS = TFS.view(/*CWD=*/llvm::None); in loadProject()
|
| H A D | StdLib.cpp | 211 const ThreadsafeFS &TFS) { in indexStandardLibrary() argument 231 TFS.view(/*CWD=*/llvm::None), IgnoreDiags); in indexStandardLibrary() 279 const ThreadsafeFS &TFS) { in indexStandardLibrary() argument 281 return indexStandardLibrary(Header, std::move(Invocation), Loc, TFS); in indexStandardLibrary()
|
| H A D | Background.h | 197 const ThreadsafeFS &TFS; variable
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | FileCache.cpp | 31 const ThreadsafeFS &TFS, std::chrono::steady_clock::time_point FreshTime, in read() argument 50 auto FS = TFS.view(/*CWD=*/llvm::None); in read()
|
| H A D | FileCache.h | 57 void read(const ThreadsafeFS &TFS,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | StdLibTests.cpp | 64 OriginalInputs.TFS = &FS; in TEST()
|
| H A D | HeadersTests.cpp | 55 PI.TFS = &FS; in setupClang() 60 auto VFS = PI.TFS->view(Cmd->Directory); in setupClang()
|
| H A D | GlobalCompilationDatabaseTests.cpp | 42 MockFS TFS; in TEST() local 43 DirectoryBasedGlobalCompilationDatabase DB(TFS); in TEST()
|
| H A D | TestTU.cpp | 68 Inputs.TFS = &FS; in inputs()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/server/ |
| H A D | Server.cpp | 529 clang::clangd::RealThreadsafeFS TFS; in main() local 530 auto FS = TFS.view(llvm::None); in main()
|