cpp_converter

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cpp_converter's default-build stub: C/C++ analysis requires libLLVM, which is only linked under the `llvm` build tag. See converter.go.

Deliberately NOT build-tagged: internal/scan needs the C/C++ file predicate for language detection in the default (no-libLLVM) build too, so it lives outside the llvm-tagged converter and is the ONE definition both the scan layer and the tagged frontend share (the pattern IsJSFamily set).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCppFile

func IsCppFile(path string) bool

IsCppFile reports whether path is a C or C++ translation unit this frontend compiles (not a header — clang can't compile one to a standalone module).

Types

type Converter

type Converter struct{}

func NewConverter

func NewConverter() *Converter

func (*Converter) ConvertFile

func (c *Converter) ConvertFile(path string) (*ir.Program, error)

func (*Converter) ConvertInventory

func (c *Converter) ConvertInventory(inv *walkignore.Inventory) (*ir.Program, error)

ConvertInventory mirrors the llvm-tagged converter's inventory entry point so the scan pipeline can plumb its cached walk uniformly; like ConvertFile it only reports that this build lacks the C/C++ backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL