Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:24, 16 May 2007.

LeaveScan Tool

From Forum Nokia Wiki

(Redirected from LeaveScan)

LeaveScan is a useful tool which can be used regularly against your source code.


  • It checks that all functions which have the potential to leave are named according to the Symbian OS convention, with a trailing L.


  • LeaveScan can be used on your source to indicate areas of code where you may have forgotten to use the convention.


  • By revealing where leaves may occur but are not acknowledged by the function name, it highlights potential bugs and gives you an opportunity to fix the problem and ensure that your code handles any leaves correctly.


  • LeaveScan works by examining each line of source code and checking that functions which do not terminate in L cannot leave. However, there are a few functions (more accurately, operators) in Symbian OS that may leave but cannot have an L suffix (such as operator<< and operator>> for RWriteStream and RReadStream respectively).


  • The naming convention cannot be applied appropriately to operators and, unfortunately, LeaveScan does not have the sophisticated logic needed to recognize operators that may leave. When you use operators that you know have the potential to leave, you’ll have to remember to check this code by sight yourself.


  • LeaveScan also checks functions which do have a trailing L to see if they really can leave. If functions are encountered which do not leave, LeaveScan raises a warning. However, this scenario can be perfectly valid, for example, when implementing an abstract function such as CActive::RunL(), some implementations may leave but others may not.


Also see


Related Discussions
Thread Thread Starter Forum Replies Last Post
Automatic install of .SIS Enliten Symbian Tools & SDKs 2 2003-08-20 14:57
Linking on Symbian OS 9.1 - error E1035 from elf2e32 tool juliand77 Symbian Tools & SDKs 3 2007-10-18 12:55
:mad: Nokia Mobile Internet Toolkit 4.1 problem infrared General Browsing 9 2007-12-31 16:29
Another HelloWorld Build Error truf Carbide.c++ and CodeWarrior Tools 10 2007-06-13 16:06
tool creating doc deepbeat General Symbian C++ 1 2006-07-05 11:12
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZtestingQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX