ctags

package
v0.0.0-...-bb7d413 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: GPL-2.0 Imports: 7 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 CtagsProperties = properties.Map{

	"tools.ctags.path":     "{runtime.tools.ctags.path}",
	"tools.ctags.cmd.path": "{path}/ctags",
	"tools.ctags.pattern":  `"{cmd.path}" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "{source_file}"`,

	"tools.avrdude.path": "{runtime.tools.avrdude.path}",

	"preproc.macros.flags": "-w -x c++ -E -CC",
}

CtagsProperties are the platform properties needed to run ctags

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 *paths.Path) []*types.CTag

Jump to

Keyboard shortcuts

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