1 //===------------ ScanningProjectModules.h -----------------------*- C++-*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H
12 #include "ProjectModules.h"
13 #include "clang/Tooling/CompilationDatabase.h"
18 /// Providing modules information for the project by scanning every file.
19 std::unique_ptr
<ProjectModules
> scanningProjectModules(
20 std::shared_ptr
<const clang::tooling::CompilationDatabase
> CDB
,
21 const ThreadsafeFS
&TFS
);