ctags

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser is a parser for ctags output

func (*Parser) FindCLinkageLines

func (p *Parser) FindCLinkageLines(tags []*Tag) map[string][]int

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

func (*Parser) Parse

func (p *Parser) Parse(ctagsOutput []byte, mainFile *paths.Path) ([]*Prototype, int)

Parse a ctags output and generates Prototypes

type Prototype

type Prototype struct {
	FunctionName string
	File         string
	Prototype    string
	Modifiers    string
	Line         int
}

Prototype is a C++ prototype generated from ctags output

func (*Prototype) String

func (proto *Prototype) String() string

type Tag

type Tag struct {
	FunctionName string
	Kind         string
	Line         int
	Code         string
	Class        string
	Struct       string
	Namespace    string
	Filename     string
	Typeref      string
	SkipMe       bool
	Signature    string

	Prototype          string
	PrototypeModifiers string
}

Tag is a tag generated by ctags

Jump to

Keyboard shortcuts

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