config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolItem

func GetBoolItem(obj *cjson.JSON, key string) bool

func GetString

func GetString(obj *cjson.JSON) (value string)

func GetStringArrayItem

func GetStringArrayItem(obj *cjson.JSON, key string) (value []string)

func GetStringItem

func GetStringItem(obj *cjson.JSON, key string, defval string) (value string)

func GetStringMapItem

func GetStringMapItem(obj *cjson.JSON, key string) map[string]string

func ParseBytes

func ParseBytes(value []byte) *cjson.JSON

Types

type Conf

type Conf struct {
	*cjson.JSON
	*llcppg.Config
}

func GetConf

func GetConf(data []byte) (Conf, error)

type PkgHfilesInfo

type PkgHfilesInfo struct {
	Inters []string // From types.Config.Include
	Impls  []string // From same root of types.Config.Include
	Thirds []string // Not Current Pkg's Files
}

func PkgHfileInfo

func PkgHfileInfo(conf *llcppg.Config, args []string) *PkgHfilesInfo

PkgHfileInfo analyzes header files dependencies and categorizes them into three groups: 1. Inters: Direct includes from types.Config.Include 2. Impls: Header files from the same root directory as Inters 3. Thirds: Header files from external sources

The function works by: 1. Creating a temporary header file that includes all headers from conf.Include 2. Using clang to parse the translation unit and analyze includes 3. Categorizing includes based on their inclusion level and path relationship

func (*PkgHfilesInfo) CurPkgFiles

func (p *PkgHfilesInfo) CurPkgFiles() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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