Versions in this module Expand all Collapse all v0 v0.4.0 May 17, 2025 v0.3.1 May 7, 2025 Changes in this version + const TEMP_FILE + func BuildScopingParts(cursor clang.Cursor) []string + func ComposeIncludes(files []string, outfile string) error + func CreateTranslationUnit(config *Config) (*clang.Index, *clang.TranslationUnit, error) + func GetIncludePaths(isCpp bool) []string + func GetInclusions(unit *clang.TranslationUnit, visitor InclusionVisitor) + func GetLocation(loc clang.SourceLocation) (file clang.File, line c.Uint, column c.Uint, offset c.Uint) + func ParseClangIncOutput(output string) []string + func Preprocess(cfg *PreprocessConfig) error + func VisitChildren(cursor clang.Cursor, fn Visitor) c.Uint + type Config struct + Args []string + File string + Index *clang.Index + IsCpp bool + Temp bool + type InclusionVisitor func(included_file clang.File, inclusions []clang.SourceLocation) + type PreprocessConfig struct + Args []string + File string + IsCpp bool + OutFile string + type Visitor func(cursor, parent clang.Cursor) clang.ChildVisitResult