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-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SCANNINGPROJECTMODULES_H 11 12 #include "ProjectModules.h" 13 #include "clang/Tooling/CompilationDatabase.h" 14 15 namespace clang { 16 namespace clangd { 17 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); 22 23 } // namespace clangd 24 } // namespace clang 25 26 #endif 27