| 1 | //===- DependencyScanningService.cpp - Scanning Service -------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "clang/DependencyScanning/DependencyScanningService.h" |
| 10 | |
| 11 | #include "llvm/Support/Chrono.h" |
| 12 | |
| 13 | using namespace clang; |
| 14 | using namespace dependencies; |
| 15 | |
| 16 | DependencyScanningServiceOptions::DependencyScanningServiceOptions() |
| 17 | : MakeVFS([] { return llvm::vfs::createPhysicalFileSystem(); }), |
| 18 | BuildSessionTimestamp( |
| 19 | llvm::sys::toTimeT(TP: std::chrono::system_clock::now())) {} |
| 20 |