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

Commits on May 22, 2020

  1. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    bdcb386 View commit details
    Browse the repository at this point in the history
  2. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    72571fb View commit details
    Browse the repository at this point in the history
  3. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    03f1d61 View commit details
    Browse the repository at this point in the history
  4. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    962d6fb View commit details
    Browse the repository at this point in the history
  5. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    b7882b1 View commit details
    Browse the repository at this point in the history
  6. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    fbe9fa0 View commit details
    Browse the repository at this point in the history
  7. README: Add custom ctags informations and families support

    Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    410a705 View commit details
    Browse the repository at this point in the history
  8. Travis CI: Use custom ctags version

    Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    57495e7 View commit details
    Browse the repository at this point in the history
  9. 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>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    4c6e7ab View commit details
    Browse the repository at this point in the history
  10. filters/makefilekconfig.py: Add missing character escape in regex

    Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    3a6a1d0 View commit details
    Browse the repository at this point in the history
  11. filters/makefilekconfig.py: Fix capturing group position

    Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
    MaximeChretien committed May 22, 2020
    Configuration menu
    Copy the full SHA
    70a071b View commit details
    Browse the repository at this point in the history