Skip to main content
Module

x/libclang/mod.ts>CXDiagnosticSet

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

A group of CXDiagnostics.

Constructors

new
CXDiagnosticSet(tu: null | CXTranslationUnit, pointer: Deno.PointerValue)

Properties

readonly
length: number

Number of CXDiagnostics in this set.

Methods

at(index: number): CXDiagnostic

Retrieve a CXDiagnostic associated with the given index.

dispose(): void

Release this CXDiagnosticSet and all of its contained diagnostics.

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

Static Methods

loadDiagnostics(fileName: string): CXDiagnosticSet

Deserialize a set of diagnostics from a Clang diagnostics bitcode file.