mirror of https://gitlab.com/cppit/libclangmm
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.
23 lines
641 B
23 lines
641 B
#include "CompileCommand.h" |
|
#include "CompileCommands.h" |
|
#include "Utility.h" |
|
|
|
std::string clang::CompileCommand:: |
|
get_command() { |
|
std::string res; |
|
unsigned N = clang_CompileCommand_getNumArgs(cx_command); |
|
for (unsigned i = 0; i < N; i++) { |
|
res += clang::to_string(clang_CompileCommand_getArg(cx_command, i)); |
|
} |
|
return res; |
|
} |
|
|
|
std::vector<std::string> clang::CompileCommand:: |
|
get_command_as_args() { |
|
unsigned N = clang_CompileCommand_getNumArgs(cx_command); |
|
std::vector<std::string> res(N); |
|
for (unsigned i = 0; i < N; i++) { |
|
res[i] = clang::to_string(clang_CompileCommand_getArg(cx_command, i)); |
|
} |
|
return res; |
|
}
|
|
|