2017-02-22 08:52:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-16 09:35:30 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2017-02-22 08:52:00 +00:00
|
|
|
#include <clang-c/CXCompilationDatabase.h>
|
|
|
|
|
|
|
|
#include "CompilationDatabase.h"
|
|
|
|
#include "CompileCommand.h"
|
2017-02-16 09:35:30 +00:00
|
|
|
|
|
|
|
namespace clang {
|
2017-02-22 08:52:00 +00:00
|
|
|
class CompileCommands {
|
|
|
|
public:
|
|
|
|
CompileCommands(const CompilationDatabase& db);
|
|
|
|
std::vector<CompileCommand> get_commands();
|
|
|
|
~CompileCommands();
|
2017-02-16 09:35:30 +00:00
|
|
|
|
2017-02-22 08:52:00 +00:00
|
|
|
CXCompileCommands cx_commands;
|
|
|
|
};
|
2017-02-16 09:35:30 +00:00
|
|
|
}
|