Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.