Documentation
¶
Index ¶
- func GetBoolItem(obj *cjson.JSON, key string) bool
- func GetString(obj *cjson.JSON) (value string)
- func GetStringArrayItem(obj *cjson.JSON, key string) (value []string)
- func GetStringItem(obj *cjson.JSON, key string, defval string) (value string)
- func GetStringMapItem(obj *cjson.JSON, key string) map[string]string
- func ParseBytes(value []byte) *cjson.JSON
- type Conf
- type PkgHfilesInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBytes ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.