refactor: incremental update for compilation database and introduce query toolchain (#311)

This commit is contained in:
ykiko
2025-11-23 18:43:36 +08:00
committed by GitHub
parent f16867902c
commit 8aff090a08
31 changed files with 1871 additions and 1168 deletions

View File

@@ -50,6 +50,8 @@ inline std::expected<void, std::string> init_resource_dir(llvm::StringRef execut
return std::expected<void, std::string>();
}
using llvm::sys::fs::createTemporaryFile;
inline std::expected<std::string, std::error_code> createTemporaryFile(llvm::StringRef prefix,
llvm::StringRef suffix) {
llvm::SmallString<128> path;