geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "tm_ctags.h"
#include "tm_tag.h"
#include "general.h"
#include "entry_p.h"
#include "error_p.h"
#include "field_p.h"
#include "options_p.h"
#include "parse_p.h"
#include "trashbox_p.h"
#include "writer_p.h"
#include "xtag_p.h"
#include <string.h>
Go to the source code of this file.
Functions | |
static gint | write_entry (tagWriter *writer, MIO *mio, const tagEntryInfo *const tag, void *user_data) |
static void | rescan_failed (tagWriter *writer, gulong valid_tag_num, void *user_data) |
static bool | nonfatal_error_printer (const errorSelection selection, const gchar *const format, va_list ap, void *data) |
static void | enable_all_lang_kinds () |
static gboolean | init_tag (TMTag *tag, TMSourceFile *file, const tagEntryInfo *tag_entry) |
static void | update_python_arglist (const TMTag *tag, TMSourceFile *source_file) |
void | tm_ctags_init (void) |
void | tm_ctags_parse (guchar *buffer, gsize buffer_size, const gchar *file_name, TMParserType language, TMSourceFile *source_file) |
const gchar * | tm_ctags_get_lang_name (TMParserType lang) |
TMParserType | tm_ctags_get_named_lang (const gchar *name) |
const gchar * | tm_ctags_get_lang_kinds (TMParserType lang) |
const gchar * | tm_ctags_get_kind_name (gchar kind, TMParserType lang) |
gchar | tm_ctags_get_kind_from_name (const gchar *name, TMParserType lang) |
guint | tm_ctags_get_lang_count (void) |
Variables | |
tagWriter | geanyWriter |
|
static |
Definition at line 52 of file tm_ctags.c.
References countLanguageKinds(), countParsers(), enableKind(), and getLanguageKind().
Referenced by tm_ctags_init().
|
static |
Definition at line 79 of file tm_ctags.c.
References sTagEntryInfo::access, TMTag::access, TMTag::arglist, sTagEntryInfo::extensionFields, TMTag::file, getLanguageKind(), TMTag::impl, sTagEntryInfo::implementation, sTagEntryInfo::inheritance, TMTag::inheritance, sTagEntryInfo::isFileScope, sTagEntryInfo::kindIndex, TMSourceFile::lang, TMTag::lang, sTagEntryInfo::langType, sKindDefinition::letter, TMTag::line, sTagEntryInfo::lineNumber, TMTag::local, sTagEntryInfo::name, TMTag::name, NULL, TMTag::pointerOrder, TMTag::scope, sTagEntryInfo::scopeName, sTagEntryInfo::signature, tm_parser_get_subparser_type(), tm_parser_get_tag_type(), tm_source_file_get_tag_access(), tm_source_file_get_tag_impl(), tm_tag_macro_t, tm_tag_macro_with_arg_t, tm_tag_undef_t, TMTag::type, sTagEntryInfo::typeRef, and TMTag::var_type.
Referenced by write_entry().
|
static |
|
static |
Definition at line 181 of file tm_ctags.c.
References TMSourceFile::tags_array, and tm_tag_unref().
gchar tm_ctags_get_kind_from_name | ( | const gchar * | name, |
TMParserType | lang | ||
) |
Definition at line 265 of file tm_ctags.c.
References getLanguageKindForName(), sKindDefinition::letter, and name.
Referenced by init_tag_from_file_ctags().
const gchar * tm_ctags_get_kind_name | ( | gchar | kind, |
TMParserType | lang | ||
) |
Definition at line 258 of file tm_ctags.c.
References getLanguageKindForLetter(), and sKindDefinition::name.
guint tm_ctags_get_lang_count | ( | void | ) |
Definition at line 272 of file tm_ctags.c.
References countParsers().
Referenced by tm_parser_verify_type_mappings().
const gchar * tm_ctags_get_lang_kinds | ( | TMParserType | lang | ) |
Definition at line 244 of file tm_ctags.c.
References countLanguageKinds(), getLanguageKind(), and sKindDefinition::letter.
Referenced by tm_parser_verify_type_mappings().
const gchar * tm_ctags_get_lang_name | ( | TMParserType | lang | ) |
Definition at line 232 of file tm_ctags.c.
References getLanguageName().
Referenced by tm_parser_verify_type_mappings(), and tm_source_file_get_lang_name().
TMParserType tm_ctags_get_named_lang | ( | const gchar * | name | ) |
Definition at line 238 of file tm_ctags.c.
References getNamedLanguage(), and name.
Referenced by tm_source_file_get_named_lang(), and tm_source_file_init().
void tm_ctags_init | ( | void | ) |
Definition at line 197 of file tm_ctags.c.
References checkRegex(), enable_all_lang_kinds(), enableXtag(), geanyWriter, initDefaultTrashBox(), initFieldObjects(), initializeParser(), initializeParsing(), initOptions(), initXtagObjects(), LANG_AUTO, nonfatal_error_printer(), NULL, setErrorPrinter(), setTagWriter(), WRITER_CUSTOM, XTAG_REFERENCE_TAGS, and XTAG_TAGS_GENERATED_BY_GUEST_PARSERS.
Referenced by tm_create_workspace().
void tm_ctags_parse | ( | guchar * | buffer, |
gsize | buffer_size, | ||
const gchar * | file_name, | ||
TMParserType | language, | ||
TMSourceFile * | source_file | ||
) |
Definition at line 223 of file tm_ctags.c.
References NULL, and parseRawBuffer().
Referenced by tm_source_file_parse().
|
static |
Definition at line 129 of file tm_ctags.c.
References TMTag::arglist, if(), TMTag::name, NULL, TMTag::scope, TMSourceFile::tags_array, tm_tag_method_t, and TMTag::type.
Referenced by write_entry().
|
static |
Definition at line 158 of file tm_ctags.c.
References getTagScopeInformation(), init_tag(), TMTag::lang, NULL, TMSourceFile::tags_array, tm_tag_new(), tm_tag_unref(), and update_python_arglist().
tagWriter geanyWriter |
Definition at line 29 of file tm_ctags.c.
Referenced by tm_ctags_init().