Home
last modified time | relevance | path

Searched refs:TFS (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/tool/
H A DCheck.cpp96 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 DClangdMain.cpp65 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 DGlobalCompilationDatabase.h94 Options(const ThreadsafeFS &TFS) : TFS(TFS) {} in Options()
96 const ThreadsafeFS &TFS; member
H A DClangdServer.cpp65 : 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 DTidyProvider.cpp39 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 DClangdServer.h187 ClangdServer(const GlobalCompilationDatabase &CDB, const ThreadsafeFS &TFS,
409 return UseDirtyHeaders ? *DirtyFS : TFS; in getHeaderFS()
411 const ThreadsafeFS &TFS; variable
H A DConfigProvider.cpp37 void get(const ThreadsafeFS &TFS, DiagnosticCallback DC, in get() argument
41 TFS, FreshTime, in get()
H A DCompiler.h48 const ThreadsafeFS *TFS; member
H A DClangdLSPServer.h65 ClangdLSPServer(Transport &Transp, const ThreadsafeFS &TFS,
252 const ThreadsafeFS &TFS; variable
H A DGlobalCompilationDatabase.cpp161 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 DCompiler.cpp101 CIOpts.VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory); in buildCompilerInvocation()
H A DPreamble.cpp317 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 DSourceCode.h175 const ThreadsafeFS &TFS);
H A DParsedAST.cpp349 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 DStdLib.h94 const ThreadsafeFS &TFS);
101 const ThreadsafeFS &TFS);
H A DBackground.cpp92 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 DStdLib.cpp211 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 DBackground.h197 const ThreadsafeFS &TFS; variable
/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DFileCache.cpp31 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 DFileCache.h57 void read(const ThreadsafeFS &TFS,
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DStdLibTests.cpp64 OriginalInputs.TFS = &FS; in TEST()
H A DHeadersTests.cpp55 PI.TFS = &FS; in setupClang()
60 auto VFS = PI.TFS->view(Cmd->Directory); in setupClang()
H A DGlobalCompilationDatabaseTests.cpp42 MockFS TFS; in TEST() local
43 DirectoryBasedGlobalCompilationDatabase DB(TFS); in TEST()
H A DTestTU.cpp68 Inputs.TFS = &FS; in inputs()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/server/
H A DServer.cpp529 clang::clangd::RealThreadsafeFS TFS; in main() local
530 auto FS = TFS.view(llvm::None); in main()

12