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
"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)
Click to show internal directories.
Click to hide internal directories.