|
|
|
@ -2,16 +2,7 @@ |
|
|
|
#include "CompileCommands.h" |
|
|
|
#include "CompileCommands.h" |
|
|
|
#include "Utility.h" |
|
|
|
#include "Utility.h" |
|
|
|
|
|
|
|
|
|
|
|
std::string clangmm::CompileCommand::get_command() { |
|
|
|
std::vector<std::string> clangmm::CompileCommand::get_arguments() { |
|
|
|
std::string res; |
|
|
|
|
|
|
|
unsigned N = clang_CompileCommand_getNumArgs(cx_command); |
|
|
|
|
|
|
|
for (unsigned i = 0; i < N; i++) { |
|
|
|
|
|
|
|
res += to_string(clang_CompileCommand_getArg(cx_command, i)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return res; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<std::string> clangmm::CompileCommand::get_command_as_args() { |
|
|
|
|
|
|
|
unsigned N = clang_CompileCommand_getNumArgs(cx_command); |
|
|
|
unsigned N = clang_CompileCommand_getNumArgs(cx_command); |
|
|
|
std::vector<std::string> res(N); |
|
|
|
std::vector<std::string> res(N); |
|
|
|
for (unsigned i = 0; i < N; i++) { |
|
|
|
for (unsigned i = 0; i < N; i++) { |
|
|
|
|