Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable local variable and function parameter tag reporting for C/C++ #3175

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e26cd13
Rename tm_tag_file_t to tm_tag_local_var_t
techee Apr 17, 2022
7935058
Enable local tag generation for C/C++
techee Apr 17, 2022
81c3055
Update goto symbol definitions to take into account local variables
techee Apr 17, 2022
f67aa1d
Update (non-scope) autocompletion to take into account local variables
techee Apr 18, 2022
1bd1306
Update scope completion to take into account local variables
techee Apr 19, 2022
0088443
Strip more things from variable type
techee Apr 19, 2022
e82d91a
Move strip_type() above find_scope_members_tags()
techee Apr 20, 2022
d218ba5
Support (multiple) inheritance by scope completion
techee Apr 20, 2022
5134b0c
Sort tags so tags from source file's header are preferred to other files
techee Apr 23, 2022
503edf8
Rewrite member_at_method_scope() to handle more situations
techee Apr 23, 2022
0c6d315
Allow local variable autocompletion also before variable declaration
techee Apr 24, 2022
58e0d4a
Move sort find_header() and sort_found_tags()
techee Apr 24, 2022
3e375d5
fixup! Sort tags so tags from source file's header are preferred to o…
techee Apr 24, 2022
0c37d5a
Sort non-scope autocompletion results by locality
techee Apr 24, 2022
8973b53
fixup! Sort tags so tags from source file's header are preferred to o…
techee Apr 27, 2022
6aff32b
fixup! Enable local tag generation for C/C++
techee Apr 27, 2022
d6cc62f
Speed up non-scope autocompletion
techee Apr 28, 2022
3c9d3b0
Fix non-scope autocompletion deduplication
techee Apr 28, 2022
c41a84c
Enable local variable and parameter tag reporting for Python and GDSc…
techee Apr 28, 2022
188fef9
Revert "Enable local variable and parameter tag reporting for Python …
techee Apr 28, 2022
9863882
Revert "Allow local variable autocompletion also before variable decl…
techee Apr 28, 2022
09f361d
Make validity of local variables configurable based on used language
techee Apr 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tagmanager/tm_workspace.c
Expand Up @@ -760,16 +760,16 @@ static TMSourceFile *find_header(TMSourceFile *source)
hdr_ext++;
if (g_strcmp0(src_name, hdr_name) == 0)
{
const gchar *hdr;
for (hdr = *header_exts; !stop && *hdr; hdr++)
const gchar **hdr;
for (hdr = header_exts; !stop && *hdr; hdr++)
{
if (g_strcmp0(src_ext, hdr) == 0)
if (g_strcmp0(src_ext, *hdr) == 0)
{
/* input source is header */
stop = TRUE;
break;
}
if (g_strcmp0(hdr_ext, hdr) == 0)
if (g_strcmp0(hdr_ext, *hdr) == 0)
{
/* we found the header */
stop = TRUE;
Expand Down