ccls/compilation_database_loader.h

16 lines
473 B
C
Raw Normal View History

2017-02-22 08:52:00 +00:00
#pragma once
#include <string>
#include <vector>
struct CompilationEntry {
std::string directory;
std::string filename;
std::vector<std::string> args;
};
2017-02-25 23:59:09 +00:00
// 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.
2017-02-22 08:52:00 +00:00
std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::string& project_directory);