mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
18 lines
422 B
C++
18 lines
422 B
C++
#ifndef COMPILECOMMAND_H_
|
|
#define COMPILECOMMAND_H_
|
|
#include <clang-c/CXCompilationDatabase.h>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace clang {
|
|
class CompileCommand {
|
|
public:
|
|
CompileCommand(const CXCompileCommand& cx_command) : cx_command(cx_command) {};
|
|
std::string get_command();
|
|
std::vector<std::string> get_command_as_args();
|
|
|
|
CXCompileCommand cx_command;
|
|
};
|
|
}
|
|
#endif // COMPILECOMMAND_H_
|