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.
12 lines
398 B
12 lines
398 B
|
6 years ago
|
#include "compile_command.hpp"
|
||
|
|
#include "compile_commands.hpp"
|
||
|
|
#include "utility.hpp"
|
||
|
11 years ago
|
|
||
|
8 years ago
|
std::vector<std::string> clangmm::CompileCommand::get_arguments() {
|
||
|
8 years ago
|
unsigned size = clang_CompileCommand_getNumArgs(cx_command);
|
||
|
|
std::vector<std::string> arguments;
|
||
|
8 years ago
|
for(unsigned i = 0; i < size; i++)
|
||
|
8 years ago
|
arguments.emplace_back(to_string(clang_CompileCommand_getArg(cx_command, i)));
|
||
|
|
return arguments;
|
||
|
11 years ago
|
}
|