Home
last modified time | relevance | path

Searched refs:CDB (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DGlobalCompilationDatabaseTests.cpp89 OverlayCDB CDB(Base.get()); in TEST_F() local
95 CDB.setCompileCommand(testPath("foo.cc"), Override); in TEST_F()
105 OverlayCDB CDB(Base.get(), {"-DA=4"}); in TEST_F() local
111 OverlayCDB CDB(nullptr, {"-DA=6"}); in TEST_F() local
114 CDB.setCompileCommand(testPath("bar.cc"), Override); in TEST_F()
140 OverlayCDB CDB(Base.get(), {"-DFallback"}, in TEST_F() local
157 Cmd = *CDB.getCompileCommand(testPath("bar.cc")); in TEST_F()
163 Cmd = CDB.getFallbackCommand("baz.cc"); in TEST_F()
307 const char *const CDB = in TEST() local
332 DirectoryBasedGlobalCompilationDatabase CDB(FS); in TEST() local
[all …]
H A DBackgroundIndexTests.cpp100 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
192 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
247 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
288 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
298 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
357 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
531 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
562 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
625 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
652 OverlayCDB CDB(/*Base=*/nullptr); in TEST_F() local
[all …]
H A DClangdTests.cpp174 MockCompilationDatabase CDB; local
226 MockCompilationDatabase CDB; in TEST() local
261 MockCompilationDatabase CDB; in TEST() local
314 MockCompilationDatabase CDB; in TEST() local
371 MockCompilationDatabase CDB; in TEST() local
393 MockCompilationDatabase CDB; in TEST() local
394 CDB.ExtraClangFlags.insert(CDB.ExtraClangFlags.end(), in TEST()
442 MockCompilationDatabase CDB; in TEST() local
478 MockCompilationDatabase CDB; in TEST() local
497 CDB.ExtraClangFlags = {}; in TEST()
[all …]
H A DTUSchedulerTests.cpp171 MockCompilationDatabase CDB; member in clang::clangd::__anon644364680111::TUSchedulerTests
583 TUScheduler S(CDB, Opts); in TEST_F()
643 TUScheduler S(CDB, Opts); in TEST_F()
952 TUScheduler S(CDB, Opts); in TEST_F()
1007 MockCompilationDatabase CDB; in TEST_F() local
1225 } CDB; in TEST_F() local
1297 CDB.FailAll = true; in TEST_F()
1305 CDB.FailAll = false; in TEST_F()
1317 TUScheduler S(CDB, Opts); in TEST_F()
1452 TUScheduler S(CDB, Opts, in TEST_F()
[all …]
H A DHeadersTests.cpp42 CDB.ExtraClangFlags = {SearchDirArg.c_str()}; in HeadersTest()
50 auto Cmd = CDB.getCompileCommand(MainFile); in setupClang()
108 CDB.getCompileCommand(MainFile)->Directory,
127 CDB.getCompileCommand(MainFile)->Directory, in insert()
135 MockCompilationDatabase CDB; member in clang::clangd::__anon8a17411c0111::HeadersTest
256 CDB.ExtraClangFlags.push_back("-fno-ms-compatibility"); in TEST_F()
296 CDB.ExtraClangFlags = {SearchDirArg.c_str()}; in TEST_F()
376 CDB.ExtraClangFlags = {"-include", testPath(HeaderFile)}; in TEST_F()
H A DStdLibTests.cpp142 MockCompilationDatabase CDB; in TEST() local
143 CDB.ExtraClangFlags.push_back("-isystem" + testPath("stdlib")); in TEST()
146 ClangdServer Server(CDB, FS, Opts); in TEST()
H A DHeaderSourceSwitchTests.cpp255 MockCompilationDatabase CDB; in TEST() local
256 CDB.ExtraClangFlags = {"-I" + in TEST()
270 ClangdServer Server(CDB, FS, Options); in TEST()
H A DSemanticSelectionTests.cpp167 MockCompilationDatabase CDB; in TEST() local
168 ClangdServer Server(CDB, FS, ClangdServer::optsForTest()); in TEST()
H A DCodeCompleteTests.cpp856 MockCompilationDatabase CDB; in TEST() local
859 ClangdServer Server(CDB, FS, Opts); in TEST()
891 MockCompilationDatabase CDB; in TEST() local
953 MockCompilationDatabase CDB; in TEST() local
1859 MockCompilationDatabase CDB; in TEST() local
1943 MockCompilationDatabase CDB; in TEST() local
2115 MockCompilationDatabase CDB; in TEST() local
2226 MockCompilationDatabase CDB; in TEST() local
2391 MockCompilationDatabase CDB; in TEST() local
2539 MockCompilationDatabase CDB; in TEST() local
[all …]
H A DRenameTests.cpp1251 MockCompilationDatabase CDB; in TEST() local
1252 ClangdServer Server(CDB, FS, ServerOpts); in TEST()
1434 MockCompilationDatabase CDB; in TEST() local
1435 CDB.ExtraClangFlags = {"-xc++"}; in TEST()
1613 ClangdServer Server(CDB, FS, ServerOpts); in TEST()
H A DXRefsTests.cpp1478 MockCompilationDatabase CDB(BuildDir, RelPathPrefix); in TEST() local
1481 ClangdServer Server(CDB, FS, ClangdServer::optsForTest()); in TEST()
1520 MockCompilationDatabase CDB; in TEST() local
1521 ClangdServer Server(CDB, FS, ClangdServer::optsForTest()); in TEST()
1601 MockCompilationDatabase CDB; in TEST() local
1602 ClangdServer Server(CDB, FS, ClangdServer::optsForTest()); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DGlobalCompilationDatabase.cpp129 std::shared_ptr<tooling::CompilationDatabase> CDB; member in clang::clangd::DirectoryBasedGlobalCompilationDatabase::DirectoryCache
173 if (CDB != nullptr && CDB.get() != OldCDB) in get()
186 return CDB; in get()
196 return CDB; in get()
293 CDB = nullptr; in load()
307 if (CDB) in load()
333 if (auto CDB = Plugin->loadFromDirectory(Path, Error)) { in load() local
336 this->CDB = std::move(CDB); in load()
372 auto Candidates = Res->CDB->getCompileCommands(File); in getCompileCommand()
446 if (!CDB) in lookupCDB()
[all …]
H A DTUScheduler.cpp594 ASTWorker(PathRef FileName, const GlobalCompilationDatabase &CDB,
607 create(PathRef FileName, const GlobalCompilationDatabase &CDB,
712 const GlobalCompilationDatabase &CDB; member in clang::clangd::__anon589430d30611::ASTWorker
831 ContextProvider(Opts.ContextProvider), CDB(CDB), Callbacks(Callbacks), in ASTWorker()
838 FileInputs.CompileCommand = CDB.getFallbackCommand(FileName); in ASTWorker()
861 auto Cmd = CDB.getCompileCommand(FileName); in update()
867 auto ProxyCmd = CDB.getCompileCommand(ProxyFile); in update()
880 Inputs.CompileCommand = CDB.getFallbackCommand(FileName); in update()
1600 TUScheduler::TUScheduler(const GlobalCompilationDatabase &CDB, in TUScheduler() argument
1603 : CDB(CDB), Opts(Opts), in TUScheduler()
[all …]
H A DTUScheduler.h241 TUScheduler(const GlobalCompilationDatabase &CDB, const Options &Opts,
363 const GlobalCompilationDatabase &CDB; variable
H A DClangdServer.cpp173 ClangdServer::ClangdServer(const GlobalCompilationDatabase &CDB, in ClangdServer() argument
176 : FeatureModules(Opts.FeatureModules), CDB(CDB), TFS(TFS), in ClangdServer()
190 WorkScheduler.emplace(CDB, TUScheduler::Options(Opts), in ClangdServer()
214 TFS, CDB, in ClangdServer()
216 [&CDB](llvm::StringRef File) { return CDB.getProjectInfo(File); }), in ClangdServer()
1040 if (!CDB.blockUntilIdle(timeoutSeconds(Timeout))) in blockUntilIdleForTest()
H A DClangdServer.h187 ClangdServer(const GlobalCompilationDatabase &CDB, const ThreadsafeFS &TFS,
407 const GlobalCompilationDatabase &CDB; variable
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DDependencyScannerTest.cpp84 FixedCompilationDatabase CDB(CWD, Compilation); in TEST() local
101 ClangTool Tool(CDB, {"test.cpp"}, std::make_shared<PCHContainerOperations>(), in TEST()
133 FixedCompilationDatabase CDB(CWD, Compilation); in TEST() local
156 ClangTool Tool(CDB, {"test.cpp", "test2.cpp"}, in TEST()
175 FixedCompilationDatabase CDB(CWD, Compilation); in TEST() local
193 ClangTool Tool(CDB, {"test.cpp", "test.cpp"}, in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
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()
102 CDB.watch([&](const std::vector<std::string> &ChangedFiles) { in BackgroundIndex()
162 auto Cmd = CDB.getCompileCommand(Path); in indexFileTask()
367 loadIndexShards(MainFiles, IndexStorageFactory, CDB); in loadProject()
H A DBackground.h151 BackgroundIndex(const ThreadsafeFS &, const GlobalCompilationDatabase &CDB,
198 const GlobalCompilationDatabase &CDB; variable
H A DBackgroundIndexLoader.h44 const GlobalCompilationDatabase &CDB);
H A DBackgroundIndexLoader.cpp122 const GlobalCompilationDatabase &CDB) { in loadIndexShards() argument
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dfp-cmp-02.ll24 ; Check the low end of the CDB range.
38 ; Check the high end of the aligned CDB range.
86 ; Check that CDB allows indices.
103 ; Check that comparisons of spilled values can use CDB rather than CDBR.
175 ; Check the comparison can be reversed if that allows CDB to be used,
H A Dfp-strict-cmp-02.ll27 ; Check the low end of the CDB range.
44 ; Check the high end of the aligned CDB range.
101 ; Check that CDB allows indices.
121 ; Check that comparisons of spilled values can use CDB rather than CDBR.
229 ; Check the comparison can be reversed if that allows CDB to be used,
/llvm-project-15.0.7/clang-tools-extra/clangd/tool/
H A DCheck.cpp108 auto CDB = std::make_unique<OverlayCDB>( in buildCommand() local
112 if (auto TrueCmd = CDB->getCompileCommand(File)) { in buildCommand()
118 Cmd = CDB->getFallbackCommand(File); in buildCommand()
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/win_cdb-tests/
H A DREADME.txt8 An example header for a CDB test, of which there are currently none:

12