Christopher White
85f83574cf
Added test of function definitions in .S files
...
Issue 150
2020-06-03 11:01:42 -04:00
Michael Opdenacker
b487a73d25
Merge pull request #148 from MaximeChretien/members
...
Enable struct, enum and union members indexing
2020-06-02 11:11:01 +02:00
Maxime Chretien
a69230f986
lib.py: Add int, long and char to the blacklist
...
They are sometimes seen as struct members here :
https://elixir.bootlin.com/linux/latest/source/arch/m68k/include/asm/amigahw.h#L278
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 10:18:55 +02:00
Maxime Chretien
8fd2bc4700
script.sh: Index struct, enum and union members in C files
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-06-02 10:18:55 +02:00
Michael Opdenacker
70a4151871
Merge pull request #143 from MaximeChretien/improve-ui
...
Improve Elixir UI
2020-05-28 12:09:32 +02:00
Maxime Chretien
2ae95c8efd
http/style.css: Center select text
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 12:02:34 +02:00
Maxime Chretien
5e287d9a7e
templates/layout.html: Add tooltip on search select element
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:46:05 +02:00
Maxime Chretien
0385f29296
web.py/query.py: Add option to search identifiers in all families
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:37:17 +02:00
Maxime Chretien
9dd20eab54
http/style.css: Improve select colors
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-28 11:02:29 +02:00
Michael Opdenacker
72e34b5ec2
Merge pull request #140 from MaximeChretien/ctags-repo
...
README: Update ctags link to refer to official repo
2020-05-27 10:44:36 +02:00
Michael Opdenacker
fb8e567c34
Merge pull request #141 from MaximeChretien/fix-travis
...
travis: Update ctags package name
2020-05-27 10:43:48 +02:00
Maxime Chretien
ce9a73f05e
travis: Update ctags package name
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-27 10:27:50 +02:00
Maxime Chretien
0fb351fc6b
README: Update ctags link to refer to official repo
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-27 10:21:33 +02:00
Michael Opdenacker
4c23138b32
Merge pull request #138 from MaximeChretien/ctags-upstream
...
script.sh: Adapt to universal-ctags Kconfig parser
2020-05-27 09:39:20 +02:00
Michael Opdenacker
9ccb820b3e
Merge pull request #139 from MaximeChretien/issue-61
...
Enable ctags extern variable support
2020-05-27 09:38:39 +02:00
Michael Opdenacker
313ba4f360
Merge pull request #137 from MaximeChretien/fix-idents
...
filters/*idents.py: Add possible html tag added by pygments
2020-05-27 09:36:42 +02:00
Michael Opdenacker
26dea97750
v2.0 release
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-05-27 09:07:35 +02:00
Maxime Chretien
6d30f73935
README: Update ctags version number
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-26 13:32:19 +02:00
Maxime Chretien
155733bdd9
Enable ctags extern variable support
...
This is needed to fix https://github.com/bootlin/elixir/issues/61
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-26 12:16:39 +02:00
Maxime Chretien
0f1f7139bd
script.sh: Adapt to universal-ctags Kconfig parser
...
The parser has been modified before being merged so we adapt to the
changes.
See : https://github.com/universal-ctags/ctags/pull/2553
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-26 11:52:34 +02:00
Maxime Chretien
30076cefb4
filters/*idents.py: Add possible html tag added by pygments
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-26 11:48:29 +02:00
Michael Opdenacker
b6606359e0
Merge pull request #136 from cxw42/tests-issue-131
...
Add tests of `struct class` (#131 )
2020-05-26 10:12:27 +02:00
Michael Opdenacker
a5afbeb2a7
Merge pull request #135 from cxw42/doc-frontend
...
Doc comments: frontend
2020-05-26 10:11:49 +02:00
Michael Opdenacker
7cec7659b2
Merge pull request #133 from cxw42/issue-129
...
API: Always set LXR_DATA_DIR and LXR_REPO_DIR based on LXR_PROJ_DIR.
2020-05-26 10:10:32 +02:00
Michael Opdenacker
b1885b6247
Merge pull request #132 from cxw42/misc
...
Copyright statements, mailmap, and whitespace
2020-05-26 10:07:51 +02:00
Chris White
53bce3913f
TestHelpers: report Python errors
...
If web.py (or other program) prints the name of a log file, log the
contents of that file.
Also, turn up verbosity in t/400-web.t.
2020-05-25 14:34:01 -04:00
Chris White
a4150aad3f
Added doc comments to Web interface ( #78 )
...
- Generate "Documented in" HTML
- resolve path to __file__: web.py finds its template directory with
respect to __file__. If __file__ is a symlink, resolve it. This lets
web.py work in a t/interact.pl session.
2020-05-25 14:32:28 -04:00
Chris White
3a8b0c19ed
Add tests of doc comments in HTML
2020-05-25 14:32:28 -04:00
Chris White
ff99aaf60c
Add tests of web.py and relevant infrastructure
...
- Add sanity tests of line_mark_string
- Update TestHelpers::_parseq() to handle HTML section headers as
well as query.py section headers
- Add tests of web.py
- Note: don't look for 200 since web.py doesn't send an HTTP Status-Line.
- In web.py, update the shebang to use env(1). The hard-coded path
caused test failures on Travis, which runs Python in a virtualenv.
2020-05-25 14:31:41 -04:00
Chris White
d3664c5704
Add tests of struct class ( #131 )
...
This adds a file and a test to detect the issue reported in #131
2020-05-25 12:54:00 -04:00
Chris White
299f762fdf
Tests: don't use t/db/
...
- Documentation fix: TestEnvironment::build_db() doesn't take a parameter
- t/100: check for the temporary directory automatically created, not
for t/db/.
- Remove .gitignore of t/db/
2020-05-23 15:45:39 -04:00
Chris White
1153a0b263
api: LXR_PROJ_DIR is authoritative ( #129 )
...
Always set LXR_DATA_DIR and LXR_REPO_DIR based on LXR_PROJ_DIR.
Fixes #129 .
Also, verbose output from Travis tests.
2020-05-23 15:40:14 -04:00
Christopher White
52d52cb2d6
TestEnvironment: create PROJ_DIR structure
...
- Instead of creating standalone temporary data and repo dirs, create a
temporary LXR_PROJ_DIR and put the data and repo dirs under it.
- Change API test project name to match that now used in TestEnvironment
This is the beginning of the test infrastructure for web.py.
2020-05-23 15:22:38 -04:00
Chris White
5e7cab18ca
Added/updated copyright notices; whitespace fixes
...
No functional changes
2020-05-23 15:14:21 -04:00
Chris White
002b42c072
Add .mailmap
2020-05-23 14:43:10 -04:00
Michael Opdenacker
d3ba0cea3b
Documentation updates
...
- Mention to mark the universal-ctags modified package as "hold"
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-05-22 18:43:37 +02:00
Michael Opdenacker
cc3cdfa93c
Add missing dependency for universal-ctags
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-05-22 18:31:26 +02:00
Michael Opdenacker
4781abde05
Merge pull request #130 from MaximeChretien/database_update
...
Database update
2020-05-22 18:28:06 +02:00
Maxime Chretien
70a071bf7a
filters/makefilekconfig.py: Fix capturing group position
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 14:31:57 +02:00
Maxime Chretien
3a6a1d0764
filters/makefilekconfig.py: Add missing character escape in regex
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 14:27:19 +02:00
Maxime Chretien
4c6e7ab85f
filters/kconfig.py: Fix regex
...
There can be '.' in the file name and the file name is always at least
one char.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 11:12:49 +02:00
Maxime Chretien
57495e71cd
Travis CI: Use custom ctags version
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:55:11 +02:00
Maxime Chretien
410a7055b4
README: Add custom ctags informations and families support
...
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
fbe9fa0e72
tests: Add support for file families
...
And fix a problem in a test where an ident where wrongly identified by
ctags. It is fixed in the new ctags version.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
b7882b1282
apy.py: Add support for file families
...
Keep compatibility with old queries by setting C family to default.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
962d6fb539
web interface: Add support for Kconfig and Devicetree idents
...
Keep old urls compatibility by settings family to C when nothing is
given.
Add a select element to select in which file family we want to search an
ident.
Update filters to support families and to handle Kconfig idents properly.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
03f1d61e26
query.py: Add support for file families in queries
...
Also add a new query to get the family of a file.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
72571fbfd9
database: Add support for Kconfig et Devicetree files
...
This brings the idea of file families, each ident is identified by his
family and can be referenced in compatible families.
For exemple :
- A Kconfig ident can be referenced in a C file but not in a Devicetree file.
- A Devicetree ident is only referenced in Devicetree files.
- A C ident is only referenced in C files.
Kconfig idents are defined without the CONFIG_ at the beginning.
We add it while indexing for an easier processing of other files.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Maxime Chretien
bdcb386626
update.py: Use 4 threads to speed up indexation
...
This allows to index multiple things at the same time so it speeds up
database indexation.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Michael Opdenacker
99d5ef7c84
Fix minor typo in documentation
...
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
2020-05-22 10:28:08 +02:00