// Find the compile commands used for a file. The compile commands must be freed by clang_CompileCommands_dispose. func (cd CompilationDatabase) CompileCommands(completeFileName string) CompileCommands { c_completeFileName := C.CString(completeFileName) defer C.free(unsafe.Pointer(c_completeFileName)) return CompileCommands{C.clang_CompilationDatabase_getCompileCommands(cd.c, c_completeFileName)} }
/** * \brief Find the compile commands used for a file. The compile commands * must be freed by \c clang_CompileCommands_dispose. */ func (db *CompilationDatabase) GetCompileCommands(fname string) CompileCommands { c_fname := C.CString(fname) defer C.free(unsafe.Pointer(c_fname)) c_cmds := C.clang_CompilationDatabase_getCompileCommands(db.c, c_fname) return CompileCommands{c_cmds} }