Showing Declarations and Definitions

When you click on an identifier name in a source file window, the Context window will show you the symbol’s declaration automatically. Functions and other symbols show up in the Context window along with their parameters and other definition information.

The Context window determines what type of symbol you are clicking or typing. For example, if you click on a variable, it will show you the declaration of the variable. If the variable is a data structure instance or a pointer to a data structure, then the Context window will show you the structure or class definition.

Decoding Base Types to Show Structures

The Context window will determine the “base” structural type of a symbol by climbing up the type hierarchy. That is, typedefs are decoded all the way back to the base structure type. For example, if you have code like this:

struct S { ... };

typedef S T;

typedef T *PT;

PT ptvar;





If you select the mem in ptvar->mem, then the Context window will find the declaration of PT ptvar, and decode the type hierarchy until it finds the struct S, and it will display the declaration of the field mem within struct S.

The Context window also decodes class hierarchies dynamically. That is, it will travel up the class derivation hierarchy looking for members that are in scope.