ctags

package
v0.0.0-...-0d042f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2018 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EXTERN = "extern \"C\""
View Source
const KIND_FUNCTION = "function"
View Source
const KIND_PROTOTYPE = "prototype"
View Source
const STATIC = "static"
View Source
const TEMPLATE = "template"

Variables

View Source
var KNOWN_TAG_KINDS = map[string]bool{
	"prototype": true,
	"function":  true,
}

Functions

This section is empty.

Types

type CTagsParser

type CTagsParser struct {
	// contains filtered or unexported fields
}

func (*CTagsParser) FindCLinkageLines

func (p *CTagsParser) FindCLinkageLines(tags []*types.CTag) map[string][]int

This function scans the source files searching for "extern C" context * It save the line numbers in a map filename -> {lines...}

func (*CTagsParser) FixCLinkageTagsDeclarations

func (p *CTagsParser) FixCLinkageTagsDeclarations(tags []*types.CTag)

func (*CTagsParser) GeneratePrototypes

func (p *CTagsParser) GeneratePrototypes() ([]*types.Prototype, int)

func (*CTagsParser) Parse

func (p *CTagsParser) Parse(ctagsOutput string, mainFile string) []*types.CTag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL