ccls/compilation_database_loader.h
Jacob Dufault b7d9a0f815 wip
2017-02-25 15:59:09 -08:00

16 lines
473 B
C++

#pragma once
#include <string>
#include <vector>
struct CompilationEntry {
std::string directory;
std::string filename;
std::vector<std::string> args;
};
// TODO: Add support for loading when there is no compilation_database.json
// file. We will just recursively scan the directory and support a global
// set of defines and include directories.
std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string& project_directory);