Posted by & filed under Build Notes.

(Build b781) – 15 May 2015

COMMANDLINE

  • In Und, change the name of the Import report to Imports to avoid name conflict with the command import.

ECLIPSE

  • Fix an issue where the Eclipse plugin failed to analyze when a graph was open. (To apply fix, you must update the Eclipse plugin from the update site).

FUZZY PARSER

  • Improved handling of macros defined in inactive regions in fuzzy C++ parser.

GENERAL

  • Fix for crash in previewer window that sometimes occurred on reparse.
  • Fix some translation issues in annotations dialogue, application styles settings page, and previewer.
  • Changed the icon in tools->options->User Interface to a user, and removed icons for the sub pages to make it consistent with the rest of the dialogue.

GRAPHS

  • Add support for Java and C# for uml sequence diagrams.
  • Fix cluster control flow graph bug that showed all nodes even when hide nodes with no highlighted edges was checked.
  • Fix issue with styled labels in cluster control flow graphs repeating the first character for each node in Python.

INFOBROWSER

  • Fix possible crash on view information.

Posted by & filed under Uncategorized.

(Build b776) – 17 Apr 2015

C PARSER

  • Fixed parser crash in essential complexity computations for extremely large functions.

FORTRAN PARSER

  • Fixed bug where declaration of an interface module procedure without the ‘module’ keyword caused a syntax error.
  • Fixed bug where some uses of array constructors using square brackets to enclose values caused syntax errors.
  • Added support for Fortran 2008 ‘error stop’ statement.
  • Fixed bug where declarations of ‘class(*)’ dummy arguments caused syntax errors.

GRAPHS

  • Moved graph layout into the background for graphviz graphs generated in understand GUI (graphs generated from the API, or as part of a visio xml export are not affected). The graph window will appear and the progress bar in the upper right corner indicates that the layout is still running. The graphwindow can be closed to cancel the graph and the graph can be changed (nodes options changed / undo) which will restart the layout with the new parameters. Restored the message that informs users when the graph failed to layout. Ensure the progress bar disappears when the graph completes the layout or encounters an error during layout.

LICENSING

  • Fix for an issue when using almfree.exe on Windows server 2008.

PROJECT

  • Restore previously removed Extends Tree report; make report off by default for all new projects.

REPORTS

  • Fixed issues with HTML Reports Index by method name.

VISUALSTUDIO

  • Fix bug importing projects from MSVC 2010 and later that contain multiple global preprocessor definition lines.

WEB PARSER

  • Added support for ‘use const’ and ‘use function’ statements.

Posted by & filed under Announcements, Release.

We will be releasing Understand 4.0 with build 772. An updated license is required, which is free as long as your maintenance is up-to-date. To check the status of your maintenance or request the updated license, please email us at keys@scitools.com

We like to add new features to Understand as soon as they are finished, that way you don’t have to wait. So, as with our previous releases, Understand 4.0 is a collection of new and existing features. Below is a list of the features that have been added since Understand 3.1 was released, or that will be included in 4.0:

  • UML Sequence Diagrams
  • Eclipse Plugin
  • Refactoring Tools
  • Editor Themes
    • The Understand Theme is now selected by default if you haven’t modified the styles
    • Entities are much more visible in the default theme
  • Control Flow Cluster Graphs
  • Relationship Graphs
  • Cluster Graphs Customization Options
    • These options are accessible via the Tools Menu under Options->Graphs->Cluster Graph Styles
  • MISRA 2012  Support in Codecheck
  • Various metrics added for supported languages
  • Java API
    • A minimalistic but functional Java API was added while creating the Eclipse plugin
    • The documentation is in the install folder under doc\manuals\java
  • Java 8 Support
  • Entity Locator Overhaul 
  • Editor Macro Support
  • C++11 and C++13 Support
  • Visual Studio 2012/2013 C++ and C# project files
  • Licensing Changes
    • All licenses now show the Maintenance Expiration Date
    • Single Developer Licenses are now tied to a specific email address

 

Posted by & filed under Announcements.

Your code has tons of important relationships in it and we want to help you find find them. With Understand 4.0 we’ve added several new graphs that let you track the relationship between two specified entities. For example if are only interested in how two functions interact with each other in a call or callby tree you can now see it. Right click on the first entity and select “Graphical Views->Calls Relationship” or Called-By Relationship. You will then be prompted to specify the second entity by clicking on that entity name in any open Understand window. The final graph shows only the call trees between those two entities.

Here is the call tree graph for the function _docall. If I am only interested in the relationship between _docall and the highlighted function “fatal” there is a lot of extra information in my way.

calltree

 

 

With the new graph I can get the desired information in a much more condensed manner:

CallsRelationshipGraph-_docall-fatal

 

There are also options to highlight, aggregate and hide nodes. For instance I can aggregate the functions by file for an even more informative view:

CallsRelationshipGraph-_docall-fatal -file

 

These new relationship graphs are available for calls, includes, overrides and base/derive relationships. What entities will you explore with this?

Posted by & filed under Announcements, Documentation.

Build 771 adds the new UML Sequence Diagram graph.

A Sequence Diagram is an interaction diagram that shows how processes operate with one another and what is their order. A sequence diagram shows object interactions arranged in time sequence. It depicts the objects and classes involved in the scenario and the sequence of messages exchanged between the objects needed to carry out the functionality of the scenario.

A sequence diagram shows, as parallel vertical lines (lifelines), different processes or objects that live simultaneously, and, as horizontal arrows, the messages exchanged between them, in the order in which they occur. This allows the specification of simple runtime scenarios in a graphical manner.

Wikipedia

In Understand this graph is available for functions and methods that call member methods.

UMLSequenceDiagramGraph

Posted by & filed under Announcements, Documentation.

A new version of the control flow graph has been added that allows much more interactivity. You can access this graph by right clicking on a function or method and selecting Graphical Views->Cluster Control Flow. The new graph lets you collapse and expand subsections of the graph by double clicking in the bounding box of that area. You can also hide parts of the graph that you are not interested in.

Here is the same function with the cluster control flow graph on the right, and the regular control flow on the left.

control flow graphs

 

Note how parts of the graph are clustered together, double clicking in that area collapses it:

collapse_cluster

 

This extra interactivity gives you the ability to work with much larger graphs while still only focusing on the areas that are important to you

Posted by & filed under Announcements, Documentation.

Understand now has a selection of predefined themes that let you quickly change the look and feel of the editor. These themes can be accessed under Tools->Options->Editor->Styles. The Predefined: section at the top of the page lets you select the theme you want, and you can customize the theme to your liking.

predefined theme

Here are what several of the themes look like:

Understand Theme

Understand Theme

Terminal Theme

Terminal Theme

Silver Theme

Silver Theme

Onyx Theme

Onyx Theme

Classic Theme

Classic Theme

Aqua Theme

Aqua Theme

 

 

 

If you like most of a predefined theme but want to “tweak” a few items, make sure to take a look at the options available for each supported language.

 

EditorStyles

 

 

For Application Styles, go to Tools->Options->User Interface->Application Styles and select your custom options there. Note that the ‘Use Editor Colors’ button is very useful for quickly matching the Editor Styles to the Application Styles.

application

 

Happy Coding and Color Customizing!

 

Posted by & filed under Tips.

We have recently added a great new feature to Understand to make any of your Refactoring needs easier. To change the name of a function, method, class, etc., right click on the entity name and select ‘Refactor->Rename’.

 

 

rename

 

preview

Type in the new name that you want to change it to and either select ‘Apply Changes’ or select ‘Preview Changes’ to see everywhere that the name will be selected.

 

 

This ‘Preview’ shows what the file looks like currently and what it will look like with the changes. Notice at the bottom it also shows all the locations where the changes will be made.

save

 

 

There are several other options in this Refactoring Tool including an ‘Extract’ option.

viewextract

Posted by & filed under Tips.

Sometimes a different type of search that provides more information can be a lot more useful than just a simple search.

Take a look at the ‘Entity Locator’, available by going to ‘View->Entity Locator’.

EntityLocator

The Entity Locator consists of sortable columns of information. Additional columns can be added by clicking on the plus icon in the top right of the Locator, allowing for a custom view.

columnSelector

Each column also has quite a few options available by clicking the dimple icon or right clicking on the column header. Several options are shown in the image below, including the ability to ‘Freeze Columns’ (similar to the ability in spreadsheet applications).

dimples

In the image below, the first two columns are frozen and the other columns can be scrolled horizontally while still seeing the frozen columns.

freezeColumns

Let us know if you have any questions and enjoy the Entity Locator.

Posted by & filed under Tips.

Sometimes you ‘inherit’ code that may not be as “pretty” as you would like it, but taking the time to fix these little things could be very time consuming. Understand helps with a ‘reindent’ option and a ‘sort’ option.

messyFunctionHere you can see that these lines are not lined up like most of us would like.

The quick fix is to highlight the text and select ‘Reindent Selection’.

reindent

 

The results are quick with a correctly indented piece of code.   goodFunction

 

 

Sometimes we just want a little organization and want things to be alphabetized. Highlight the text, right click and select ‘Sort Selection’ in the context menu.

sortSelection

 

The result is an alphabetized list that can make the pickiest person happy.

notSorted     sorted