Permalink
Commits on May 4, 2012
  1. dxr: make left hand sidebar point to the function declaration

    Carlos Garnacho committed May 4, 2012
    This is most noticeable in header files, where items in the left
    hand list will link to the method implementation in the .cpp file,
    which is a more intuitive way to read through code.
    
    https://bugzilla.mozilla.org/show_bug.cgi?id=751525
  2. www: Fix declaration/definition switching on the information popup

    Carlos Garnacho committed Apr 30, 2012
    The information popup now offers information about both where functions
    are declared and defined, allowing switching between those.
  3. dxr: Fill in the decldef table directly from the the csv data

    Carlos Garnacho committed Apr 30, 2012
    Instead of storing in memory and then iterating through all the
    data, store directly in the database and then match the defid at
    a later stage.
  4. dxr: Set extents on definitions

    Carlos Garnacho committed Apr 30, 2012
    The .csv files will now contain extents information about
    function definitions, which allows for a more direct storage
    of the declaration/definition map
Commits on Apr 30, 2012
  1. www: Fix error message when the DB can't be opened

    Carlos Garnacho committed Apr 30, 2012
    filename does not exist in that context, so use the database
    basename for a clueful message.
Commits on Apr 25, 2012
  1. www: Add "Search for 'foo'" link into the info popup

    Carlos Garnacho committed Apr 25, 2012
    This unifies "search on click" behavior for identifiers,
    comments and strings.
  2. dxr: Use prefix matching for FTS queries

    Carlos Garnacho committed Apr 25, 2012
    This provides results that are closer to MXR's
  3. dxr: Fix redundant results

    Carlos Garnacho committed Apr 25, 2012
    Quoting a single search term in the FTS query happened to
    confuse the tokenizer, having it return multiple results
    per line, so only add quotes if the term contains '-',
    which is part of the FTS syntax.
    
    Also, ensure that a line is returned once even if it contains
    the search term multiple times.
  4. dxr: Include generated files in HTML generation

    Carlos Garnacho committed Apr 25, 2012
    The generated files needed special handling as they only exist
    in the objdir.
Commits on Apr 19, 2012
  1. Merge pull request #23 from cleeland/issue21

    ehsan committed Apr 19, 2012
    Fix issue #21.
  2. Merge pull request #24 from cleeland/issue22

    ehsan committed Apr 19, 2012
    Fix for issue #22
  3. Update docs to reflect requirement for sqlite 3.7+ due to fts4 usage.…

    Chris Cleeland committed Apr 19, 2012
    … Fixes issue #22.
  4. Fix issue #21.

    Chris Cleeland committed Apr 19, 2012
Commits on Apr 13, 2012
  1. www: quote properly search terms in FTS queries

    Carlos Garnacho committed Apr 13, 2012
    '-' characters in an FTS MATCH are also part of the syntax,
    and MATCH 'foo-bar' (get all matches with "foo" but not "bar")
    is distinct from MATCH '"foo-bar"' (get all matches with
    "foo-bar").
    
    So, make sure search terms as introduced in the search box are
    quoted individually in FTS queries.
Commits on Apr 12, 2012
  1. www: enable search on click within strings in code

    Carlos Garnacho committed Apr 12, 2012
    Likewise to comments, clicking on words within strings will initiate
    a search for that term.
  2. www: enable search on click for code comments

    Carlos Garnacho committed Apr 12, 2012
    Now clicking on a word in a code comment will start a search for that
    term in the same tab.
  3. www: Handle nonexistent reference IDs more gracefully

    Carlos Garnacho committed Apr 12, 2012
  4. www: strip leading/trailing whitespaces before splitting search terms

    Carlos Garnacho committed Apr 12, 2012
    This fixes an exception if the search term contains those characters,
    as it was leading to a malformed NEAR usage in FTS queries.
  5. www: Do not use dojo widgets in the information popup

    Carlos Garnacho committed Apr 12, 2012
    It's been replaced by HTML/CSS/JS.
  6. dxr: generate links to header files on #include directives

    Carlos Garnacho committed Apr 11, 2012
Commits on Apr 10, 2012
  1. update.sh: support relative paths on the config file location

    Carlos Garnacho committed Apr 10, 2012
  2. www: sort items in the type list alphabetically

    Carlos Garnacho committed Apr 10, 2012
  3. www: Show link to macro definition the info popup

    Carlos Garnacho committed Apr 10, 2012
  4. dxr: optionally display the type list

    Carlos Garnacho committed Apr 10, 2012
    The left hand list in the code view is now optionally displayed,
    with a small -/+ button above to toggle visibility. Indexing
    plugins may choose to collapse the type list for a generated
    html file by default or not.
Commits on Apr 4, 2012
  1. www: improve case insensitivity in sidebar results

    Carlos Garnacho committed Apr 4, 2012
    Some direct (case sensitive) string matching was being used
    for the results, have it done on normalized strings.
  2. www: Redirect to files and type/function definitions on exact matches

    Carlos Garnacho committed Apr 4, 2012
    If the string being searched matches exactly with a filename or
    type/function definition, redirect directly there, the HTML files
    will show a hint box to let the user do the search if it was really
    meant.
  3. www: prepare for search query redirections

    Carlos Garnacho committed Apr 4, 2012
    if there's a "string" parameter in the GET variables when
    displaying a generated HTML file, it will be taken as a hint
    that the url is being displayed due to a search that provided
    it as a direct result, so a box will be shown letting the user
    get the search results themselves.
  4. dxr: Fix link hrefs when other tags apply

    Carlos Garnacho committed Apr 4, 2012
    The HTML generator was tripping up if a link applied to
    an offset that was added previously some HTML tags, so
    use the original string in order to create the link href.
  5. www: Don't fail fetching text from generated files

    Carlos Garnacho committed Apr 4, 2012
    Do not raise an exception if a query happened to hit a
    generated and deleted file which couldn't make it to
    the FTS table. Whether those files have a presence in
    the DB or not is still debatable.
  6. dxr: ensure sidebar tuples get the scope name

    Carlos Garnacho committed Apr 4, 2012
    a sqlite3.Row isn't quite a dict, so the "'sname' in df" check
    was spuriously returning false.
  7. dxr: Store extents for types/functions/variables

    Carlos Garnacho committed Apr 4, 2012
    Those were previously just stored in memory for HTML generation,
    keep that data stored in the database too for the link generation
    phase.
  8. dxr: Handle empty extents more gracefully

    Carlos Garnacho committed Apr 4, 2012
    Don't raise an exception if a link tuple has no extents,
    just don't add the link.
  9. clang: canonicalize class declarations straight away

    Carlos Garnacho committed Apr 4, 2012
    The clang plugin used to generate distinct "type" entries in the
    csv files for declarations like:
    
    class FooBar;
    
    And the indexer plugin would normalize those to point to the
    real definition of the class. This step is now done directly
    in the clang plugin, as it's less guess work and the data can
    make it directly to the database.
  10. update.sh: specify configuration file to dxr-index.py

    Carlos Garnacho committed Apr 3, 2012
    This is so both are guaranteed to fetch the settings from the
    same place.