//===- DirectoryScanner.cpp - Utility functions for DirectoryWatcher ------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "DirectoryScanner.h" #include "llvm/Support/Path.h" #include <optional> namespace clang { usingnamespacellvm; std::optional<sys::fs::file_status> getFileStatus(StringRef Path) { … } std::vector<std::string> scanDirectory(StringRef Path) { … } std::vector<DirectoryWatcher::Event> getAsFileEvents(const std::vector<std::string> &Scan) { … } } // namespace clang