You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
510 B

11 years ago
#ifndef COMPILECOMMANDS_H_
#define COMPILECOMMANDS_H_
#include "CompilationDatabase.h"
#include "CompileCommand.h"
#include <clang-c/CXCompilationDatabase.h>
#include <string>
#include <vector>
namespace clang {
class CompileCommands {
public:
CompileCommands(const std::string &filename, CompilationDatabase *db);
std::vector<CompileCommand> get_commands();
~CompileCommands();
private:
CXCompileCommands commands_;
friend class CompileCommand;
};
}
#endif // COMPILECOMMANDS_H_