mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 02:51:57 +00:00
16 lines
473 B
C++
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); |