Blog

Posts Tagged ‘options’

CMake and Understand

Tuesday, April 3rd, 2012

If your team uses cmake to build your projects, you can use it to generate your Understand project. It will add all of the files, setup the correct macro definitions for each file, and setup the correct include files for each file in the project. The advantage of creating an Understand project like this is that the project will be much more accurate than can be created by hand, allowing you to have easier access to all the features of our new strict parser.

In order to use this,

  1. Navigate to your build directory
  2. Edit CMakeCache.txt and set CMAKE_EXPORT_COMPILE_COMMANDS to ON.
  3. Run make again, you’ll see a file called compile_commands.json in your build directory.
  4. To import into an understand project run the following from the command line (skip the red part for existing projects):
         und -db path/to/db.udb create -languages C++ add path/to/build/dir/compile_commands.json settings -c++AddFoundFilesToProject on analyze

 

Update – On Windows you must use the NMake Makefiles generator. For example:
cmake -G "NMake Makefiles" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

New Key Binding Options

Wednesday, October 12th, 2011

We’ve made a few changes to how keyboard shortcuts are managed with build 586.

Key Bindings can still be accessed via Tools->Options->Key Bindings  but this page now lets you search for key binding, either by name or by the actual keystrokes. This page also has all of the key bindings in one place for easy browsing. The other change was to add a separate page for each Component(Category) of key bindings in the navigation pane.

While these are relatively small changes, we hope they will make life easier for those who rely heavily on keyboard navigation.

keybindings