Exemplo n.º 1
0
/**
 * \brief Get the I'th CompileCommand for a file
 *
 * Note : 0 <= i < clang_CompileCommands_getSize(CXCompileCommands)
 */
func (cmds CompileCommands) GetCommand(idx int) CompileCommand {
	c_cmd := C.clang_CompileCommands_getCommand(cmds.c, C.unsigned(idx))
	return CompileCommand{c_cmd}
}
Exemplo n.º 2
0
/*
	Get the I'th CompileCommand for a file

	Note : 0 <= i < clang_CompileCommands_getSize(CXCompileCommands)
*/
func (cc CompileCommands) Command(i uint32) CompileCommand {
	return CompileCommand{C.clang_CompileCommands_getCommand(cc.c, C.uint(i))}
}