27 lines · c
1//===------------ ScanningProjectModules.h -----------------------*- C++-*-===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H11 12#include "ProjectModules.h"13#include "clang/Tooling/CompilationDatabase.h"14 15namespace clang {16namespace clangd {17 18/// Providing modules information for the project by scanning every file.19std::unique_ptr<ProjectModules> scanningProjectModules(20 std::shared_ptr<const clang::tooling::CompilationDatabase> CDB,21 const ThreadsafeFS &TFS);22 23} // namespace clangd24} // namespace clang25 26#endif27