Skip to main content
Module

x/libclang/BuildSystem.ts>CXVirtualFileOverlay

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

Class encapsulating information about overlaying virtual file/directories over the real file system.

Constructors

new
CXVirtualFileOverlay()

Methods

addFileMapping(virtualPath: string, realPath: string): void

Map an absolute virtual file path to an absolute real one. The virtual path must be canonicalized (not contain "."/"..").

An error is thrown on error.

dispose(): void

Dispose of this CXVirtualFileOverlay object.

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

setCaseSensitivity(value: boolean): void

Set the case sensitivity for this CXVirtualFileOverlay object. The CXVirtualFileOverlay object is case-sensitive by default, this option can be used to override the default.

An error is thrown on error.

writeToBuffer(): Uint8Array

Write out this CXVirtualFileOverlay object to a char buffer.

An error is thrown on error.