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

Database update #130

Merged
merged 11 commits into from
May 22, 2020
Merged

Conversation

MaximeChretien
Copy link
Contributor

Update database to support Kconfig and Devicetree idents and add the idea of file families.
Update update.py to use 4 threads for faster indexation.

This fix issues :

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>
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>
Also add a new query to get the family of a file.

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
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>
Keep compatibility with old queries by setting C family to default.

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
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>
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
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>
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
@michaelopdenacker
Copy link

Merged. Many thanks!
Michael

@michaelopdenacker michaelopdenacker merged commit 4781abd into bootlin:master May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants