I am pleased to announce a second alpha release of DXR <https://wiki.mozilla.org/DXR> (<http://wiki.mozilla.org/DXR>). Several improvements have been made, including changes to the UI as well as better cooperation with macros. A complete list of changes can be found at the end. As this is the second release, I have expanded the live demo to include not one but two separate indexing trees: clang <http://dxr.mozilla.org/clang> <http://dxr.mozilla.org/clang> and mozilla-central <http://dxr.mozilla.org/clang> <http://dxr.mozilla.org/mozilla/>, both of which are current as of last night.

The advantage of DXR is that it sees the source code by instrumenting the compiler at build time, so it is able to understand classes most of whose methods are defined by macros, like Clang's RecursiveASTVisitor <http://dxr.mozilla.org/clang/clang/include/clang/AST/RecursiveASTVisitor.h.html>. Like any source code browser, it is possible to click on an identifier and then go see information about the identifier, such as its points of declaration, or its definition. Unlike LXR and MXR, however, it knows what type of identifier it's working with, so you won't be offered the definition of BuiltinType::getKind if you look up the getKind method of an Expr object.

Another new feature is support for plugins, to allow people to use different compilers, add in support for more languages, or even augment the UI with new features like capturing line-coverage information. The current support is rudimentary, but there is already active work on a dehydra-based indexer <https://github.com/groleo/dxr> (see <https://github.com/groleo/dxr>).

A list of new features:

   * Improved search speed at runtime, and dropped glimpse as a
     prerequisite
   * The web UI works in newer versions of Firefox
   * Support for plugins has been added
   * Disk space requirements have been radically reduced
   * Setup configuration is easier
   * Link extents have been fixed in many cases
   * Declarations can now be seen along with definitions
   * Macros can now be browsed like source code

_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to