Documentation ¶
Index ¶
- Constants
- func BuildScopingParts(cursor clang.Cursor) []string
- func CreateTranslationUnit(config *Config) (*clang.Index, *clang.TranslationUnit, error)
- 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 VisitChildren(cursor clang.Cursor, fn Visitor) c.Uint
- type Config
- type InclusionVisitor
- type Visitor
Constants ¶
View Source
const TEMP_FILE = "temp.h"
Variables ¶
This section is empty.
Functions ¶
func BuildScopingParts ¶
Traverse up the semantic parents
func CreateTranslationUnit ¶
func GetInclusions ¶
func GetInclusions(unit *clang.TranslationUnit, visitor InclusionVisitor)
func GetLocation ¶
Types ¶
type InclusionVisitor ¶
type InclusionVisitor func(included_file clang.File, inclusions []clang.SourceLocation)
Click to show internal directories.
Click to hide internal directories.