54 int includes_count,
const char *tags_file,
TMParserType lang);
62 gboolean function, gboolean member,
const gchar *current_scope, gboolean search_namespace);
74void tm_workspace_dump(
void);
The TMSourceFile structure represents the source file and its tags in the tag manager.
The Tag Manager Workspace.
GPtrArray * global_typename_array
GPtrArray * typename_array
GPtrArray * global_tags
Global tags loaded at startup.
GPtrArray * source_files
An array of TMSourceFile pointers.
GPtrArray * tags_array
Sorted tags from all source files (just pointers to source file tags, the tag objects are owned by th...
TMTagAttrType
Tag Attributes.
GPtrArray * tm_workspace_find(const char *name, const char *scope, TMTagType type, TMTagAttrType *attrs, TMParserType lang)
GPtrArray * tm_workspace_find_prefix(const char *prefix, TMParserType lang, guint max_num)
void tm_workspace_add_source_file_noupdate(TMSourceFile *source_file)
GPtrArray * tm_workspace_find_scope_members(TMSourceFile *source_file, const char *name, gboolean function, gboolean member, const gchar *current_scope, gboolean search_namespace)
gboolean tm_workspace_load_global_tags(const char *tags_file, TMParserType mode)
gboolean tm_workspace_create_global_tags(const char *pre_process, const char **includes, int includes_count, const char *tags_file, TMParserType lang)
void tm_workspace_free(void)
const TMWorkspace * tm_get_workspace(void)
void tm_workspace_update_source_file_buffer(TMSourceFile *source_file, guchar *text_buf, gsize buf_size)
void tm_workspace_remove_source_files(GPtrArray *source_files)
Removes multiple source files from the workspace and updates the workspace tag arrays.
void tm_workspace_add_source_files(GPtrArray *source_files)
Adds multiple source files to the workspace and updates the workspace tag arrays.
void tm_workspace_remove_source_file(TMSourceFile *source_file)
Removes a source file from the workspace if it exists.
void tm_workspace_add_source_file(TMSourceFile *source_file)
Adds a source file to the workspace, parses it and updates the workspace tags.
struct TMWorkspace TMWorkspace
The Tag Manager Workspace.