Symbian OS has a standard convention for functions that may Leave. Therefore, any function that Leaves, or calls a function that Leaves (other than in a TRAP harness), must have a name ending in L. Leavescan verifies that your code satisfies this convention. LeaveScan ignores calls in trapped functions, commented out code, ( // and /* and */). It also checks for calls to LD, LC and LX functions as well as normal L functions. It also checks for User::Leave(), ELeave, and User::LeaveIfError().
To start, define where the path to the leavescan.exe program using the Leavescan preference panel.
Next, to run Leavescan:
for /R %i in (*.cpp) do leavescan %i >> leavescan.out
This will scan all cpp files in or below the current directory, placing the result in leavescan.out.
Figure 1. Invoking Run Leavescan on a single source file