Documentation
¶
Index ¶
- func IsHeaderFile(name string) bool
- func ListFiles(dir string, recursive bool) iter.Seq2[FileEntry, error]
- func ListIncludes(headerFile string, includeDirs []string) (includeFiles iter.Seq2[string, bool], err error)
- func LoadIncludes(headerFile string) (includes iter.Seq[Include], err error)
- func TopHeaders(headerDir string, recursive, rel bool, includeDirs []string) (topHeaders []string, err error)
- type FileEntry
- type Include
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHeaderFile ¶
IsHeaderFile checks if the given file name has a header file extension.
func ListFiles ¶
ListFiles returns a sequence of files in the specified directory. If recursive is true, it includes files in subdirectories as well.
func ListIncludes ¶
func ListIncludes(headerFile string, includeDirs []string) (includeFiles iter.Seq2[string, bool], err error)
ListIncludes lists the include files for the specified header file. It returns a sequence of include file paths and a boolean indicating whether the file was found. The include file path is the resolved path when ok is true, and the raw include filename otherwise.
func LoadIncludes ¶
LoadIncludes loads the include directives from the specified header file. It returns a sequence of Include objects.
Types ¶
Click to show internal directories.
Click to hide internal directories.