Closed
Bug 1072537
Opened 10 years ago
Closed 10 years ago
clang plugin's needles_by_line() doesn't return correct format
Categories
(Webtools Graveyard :: DXR, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: erik, Assigned: erik)
References
Details
It returns something like this...
[[{'end': 5, 'start': 5, 'term': ('c-function', 'main')},
{'end': 5, 'start': 5, 'term': ('c-function', 'main(int, char **)')},
{'end': 14, 'start': 14, 'term': ('c-variable', 'argc')},
{'end': 26, 'start': 26, 'term': ('c-variable', 'argv')},
{'end': 14, 'start': 14, 'term': ('c-variable', 'main(int, char **)::argc')},
{'end': 26, 'start': 26, 'term': ('c-variable', 'main(int, char **)::argv')},
{'end': 14, 'start': 14, 'term': ('c-member', 'main(int, char **)')},
{'end': 26, 'start': 26, 'term': ('c-member', 'main(int, char **)')},
{'end': 5, 'start': 5, 'term': ('c-sig', '(int, char**) -> int')}]]
...when what we need is an iterable of key/value pairs.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → erik
Comment 1•10 years ago
|
||
Commit pushed to function-needle at https://github.com/mozilla/dxr
https://github.com/mozilla/dxr/commit/2acac828d0f37b159d944668fbb13e898d7b34d2
Emit clang needles in the right format. Fix bug 1072537.
They were coming out as dicts. Now they are key/value pairs.
I may have screwed up annotations() by changing group_needles(), but I suspect it didn't work before anyway.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 2•10 years ago
|
||
Commit pushed to es at https://github.com/mozilla/dxr
https://github.com/mozilla/dxr/commit/2acac828d0f37b159d944668fbb13e898d7b34d2
Emit clang needles in the right format. Fix bug 1072537.
Comment 3•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/dxr
https://github.com/mozilla/dxr/commit/2acac828d0f37b159d944668fbb13e898d7b34d2
Emit clang needles in the right format. Fix bug 1072537.
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•