16 #ifndef MLIR_TOOLS_LSPSERVERSUPPORT_COMPILATIONDATABASE_H
17 #define MLIR_TOOLS_LSPSERVERSUPPORT_COMPILATIONDATABASE_H
20 #include "llvm/ADT/StringMap.h"
58 void loadDatabase(StringRef filename);
62 llvm::StringMap<FileInfo> files;
This class contains a collection of compilation information for files provided to the language server...
const FileInfo & getFileInfo(StringRef filename) const
Get the compilation information for the provided file.
CompilationDatabase(ArrayRef< std::string > databases)
Construct a compilation database from the provided files containing YAML descriptions of the database...
Include the generated interface declarations.
Compilation information for a specific file within the database.
FileInfo(std::vector< std::string > &&includeDirs)
std::vector< std::string > includeDirs
The include directories available for the file.