Skip to main content
Module

x/libclang/mod.ts>CXCompilationDatabase

Deno FFI bindings for libclang
Go to Latest
class CXCompilationDatabase
import { CXCompilationDatabase } from "https://deno.land/x/libclang@1.0.0-beta.8/mod.ts";

A compilation database holds all information used to compile files in a project. For each file in the database, it can be queried for the working directory or the command line used for the compiler invocation.

Constructors

new
CXCompilationDatabase(buildDirectory: string)

Methods

dispose(): void

Free the given compilation database.

It is not strictly necessary to call this method, the memory will be released as part of JavaScript garbage collection.

Get all the compile commands in the given compilation database.

getCompileCommands(completeFileName: string): CompileCommand[]

Find the compile commands used for a file.