# HG changeset patch # User dan.podwall@nokia.com # Date 1239047788 18000 # Node ID 887bd61e1328fa9b4e344a5d00efb25e254cfa62 # Parent ff58688cad6c081c069692c7ee5355691f703d8e# Parent 8254273d11c07d9f3ed06c53c5f43735f150a6be merge from RCL_2_0 to default diff -r 8254273d11c0 -r 887bd61e1328 .branch.txt --- a/.branch.txt Mon Apr 06 14:33:24 2009 -0500 +++ b/.branch.txt Mon Apr 06 14:56:28 2009 -0500 @@ -1,1 +1,1 @@ -RCL_2_0 +default diff -r 8254273d11c0 -r 887bd61e1328 .hgignore --- a/.hgignore Mon Apr 06 14:33:24 2009 -0500 +++ b/.hgignore Mon Apr 06 14:56:28 2009 -0500 @@ -1,6 +1,5 @@ # use glob syntax. syntax: glob -*.class bin runtime \.DS_Store diff -r 8254273d11c0 -r 887bd61e1328 builder/com.nokia.carbide.cdt.builder.test/src/com/nokia/carbide/cdt/builder/test/errorParsers/AllTests.java --- a/builder/com.nokia.carbide.cdt.builder.test/src/com/nokia/carbide/cdt/builder/test/errorParsers/AllTests.java Mon Apr 06 14:33:24 2009 -0500 +++ b/builder/com.nokia.carbide.cdt.builder.test/src/com/nokia/carbide/cdt/builder/test/errorParsers/AllTests.java Mon Apr 06 14:56:28 2009 -0500 @@ -27,6 +27,7 @@ //$JUnit-BEGIN$ suite.addTestSuite(TestRVCTErrorParser.class); suite.addTestSuite(TestMakmakeErrorParser.class); + suite.addTestSuite(TestSBSv2ErrorParser.class); //$JUnit-END$ return suite; } diff -r 8254273d11c0 -r 887bd61e1328 core/carbide_releases/readme/background_carbide.jpg Binary file core/carbide_releases/readme/background_carbide.jpg has changed diff -r 8254273d11c0 -r 887bd61e1328 core/carbide_releases/readme/readme_sdks.html --- a/core/carbide_releases/readme/readme_sdks.html Mon Apr 06 14:33:24 2009 -0500 +++ b/core/carbide_releases/readme/readme_sdks.html Mon Apr 06 14:56:28 2009 -0500 @@ -1,69 +1,65 @@ - - - - - -SDK Support in Carbide.c++ - - - - - -

You're not done installing just yet...

-

Release: 2.0.3
- Revised: Feb 2009

-

Read the Release Notes and What's New for the latest infomation about this product. In Carbide.c++ simply click Help > Help Contents > Carbide Help.

-

To complete your installation and start Symbian C++ application development, you must install the following:

- - - - - - - -

Installing Perl

-

The Carbide.c++ tools require a copy of Perl to run build scripts:

- Perl (www.activestate.com) -
- - - - - - - -

Installing SDKs

-

Also, you must install at least one of the following SDKs to develop Symbian applications: -

-

NOTE Carbide.c++ requires SDKs built to support WINSCW format.

-

S60 Platform SDKs (forum.nokia.com/main/resources/tools_and_sdks/carbide/)

-
    -
  • S60 5th Edition -
  • S60 3rd Edition, FP2 -
  • S60 3rd Edition, FP1 -
  • S60 3rd Edition, MR -
-

Qt SDKs (www.trolltech.com)

-
    -
  • Qt SDK for S60 -
-

UIQ SDKs (developer.uiq.com)

-
    -
  • UIQ 3.1 -
  • UIQ 3.0 -
-
- - - + + + + + +SDK Support in Carbide.c++ + + + + + +

You're not done installing just yet...

+

Release: 2.1.0
+ Revised: April 2009

+

Read the Release Notes and Bug Fixes for the latest infomation about this product. In Carbide.c++ simply click the Help > Help Contents > Carbide.c++ User Guide to find the pages.

+

To complete your installation and start Symbian C++ application development, you must install the following:

+ + + + + + + +

Installing Perl

+

The Carbide.c++ tools require a copy of Perl to run build scripts:

+ Perl (www.activestate.com) +
+ + + + + + + +

Installing SDKs

+

Also, you must install at least one of the following SDKs to develop Symbian applications: +

+

NOTE Carbide.c++ requires SDKs built to support WINSCW format.

+

S60 Platform SDKs (forum.nokia.com/main/resources/tools_and_sdks/carbide/)

+
    +
  • S60 5th Edition +
  • S60 3rd Edition, FP2 +
  • S60 3rd Edition, FP1 +
  • S60 3rd Edition, MR +
+

Qt SDKs (www.trolltech.com)

+
    +
  • Qt SDK for S60 +
+

UIQ SDKs (developer.uiq.com)

+
    +
  • UIQ 3.1 +
  • UIQ 3.0 +
+

 

+ + + diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp-feature/feature.xml --- a/core/com.nokia.carbide.cpp-feature/feature.xml Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp-feature/feature.xml Mon Apr 06 14:56:28 2009 -0500 @@ -2,7 +2,7 @@ diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/Tools/release_notes.txt diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/book.css --- a/core/com.nokia.carbide.cpp.codescanner/book.css Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner/book.css Mon Apr 06 14:56:28 2009 -0500 @@ -1,184 +1,184 @@ -/* - Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). - All rights reserved. - License: http://www.eclipse.org/legal/epl-v10.html -*/ - -/* Add whitespace around entire display to avoid crowding edges of view */ -/* 20070523-Removed top margin size to close gap between location breadcrumbs and page title */ -html { - margin: 2px 10px 10px 10px; - } - -/* Set default font to serif style, 12-pt and plain */ -body, p, table { - font-family: Georgia, "Times New Roman", Times, serif; - font-size: 13px; - font-weight: normal; -} - -/* Use sans-serif fonts for all title styles */ -h1, h2, h3, h4, h5, h6, strong, em { - font-family: Helvetica, sans-serif; - color: #000000; - } - -h1 { font-size:20px } -h2 { font-size:18px } -h3 { font-size:16px } -h4 { font-size:14px } -h5 { font-size:13px } -h6 { font-size:12px } - -/* For headlines at the top of a view, add space */ -/* 20090224-changed green fade to gold header image */ -h1, h2, h3 { - background-image: url(html/images/brand/gold_header.png); - background-repeat: no-repeat; - padding:10px 0px 10px 12px; - } - -li { - margin-bottom:8px; - margin-top:8px; - } - -/* Footer includes space and a gray line above the company logo */ -#footer { - padding-top:10px; - margin-top:20px; - border-top:1px solid #999; - font-family: Helvetica, sans-serif; - font-size: 11px; - color:#333; - } - -.listing { - font-family: "Courier New", Courier, mono; - color: #000000; - background-color: #FFFFCC; - margin: 5px 0px; - } - -.code, pre { - font-family: "Courier New", Courier, mono; - font-size: 13px; - color: #000000; - } - -.step { - /* background-color: #EEE; */ - /* margin: 10px 0px; */ - color: #111; - /* border-bottom:2px solid #EEE; */ - } - -.substep { - background-color: #EEE; - } - - -/* Figure/Listing/Table titles are centered and gray */ -p.table { - color: #999; - font-weight: bold; - padding-top: 5px; - } - -table { - border: solid #999 1px; - table-layout: auto; - font-size: 13px; - } - -td, th { - border: solid #999 1px; - padding: 5px; - vertical-align:top; - } - -/* 20070522-replaced gray with green background to match gradiant color for title */ -th { - background-color:#FDDD1F; /* background-color:#acd79b; - background-color:#999; - color:#FFF; */ - } - -div.ol.p { - margin-left: 3em; - } - -/* Make all ordered/unordered list items appear in bold gray */ -div ol > li, div ul > li { - font-weight:bold; - color: #333; - } - -div ol > p, div ul > p, div li > p { - font-weight:normal; - } - -/* Make all H4 and H5 items appear in bold gray against a light green background */ -div h5, div h4 { - padding:5px 0px 5px 12px; - background-color:#FFFF66; - /* background-color: #EEE; */ - font-weight:bold; - color: #000000; - } - - -/* Notes stand out using a light top & bottom borders with dark gray text */ -p.note { - /* color: #03C; */ - /* background-color: #FFFF99; */ - color: #333; - padding: 5px; - margin-left: 1em; - margin-right: 1em; - border-top: solid #BBB thin; - border-bottom: solid #BBB thin; - } - - -/* Figure/Listing/Table titles are centered and gray */ -p.figure { - color: #333; - text-align: center; - font-weight: bold; - } - -/* highly visible red background and white text for things that need fixing before release */ -/* SHOULD NOT BE PRESENT IN RELEASED PRODUCTS */ -.fix { - background-color: red; - font-weight: bold; - color: white; - } - -.question { - font-style:italic; - font-weight:bold; - color: #555; - } - -.titleSmall { - font-family: Helvetica, sans-serif; - font-size: 11px; - } - - -.plain { - font-family: Helvetica, sans-serif; - font-size: 12px; - font-style: normal; - line-height: normal; - font-weight: normal; - font-variant: normal; - color: #000000; - text-decoration: none; - } - -a:link { color: #0033CC } -a:visited { color: #555555 } -a:hover { color: #0033CC } +/* + Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + All rights reserved. + License: http://www.eclipse.org/legal/epl-v10.html +*/ + +/* Add whitespace around entire display to avoid crowding edges of view */ +/* 20070523-Removed top margin size to close gap between location breadcrumbs and page title */ +html { + margin: 2px 10px 10px 10px; + } + +/* Set default font to serif style, 12-pt and plain */ +body, p, table { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 13px; + font-weight: normal; +} + +/* Use sans-serif fonts for all title styles */ +h1, h2, h3, h4, h5, h6, strong, em { + font-family: Helvetica, sans-serif; + color: #000000; + } + +h1 { font-size:20px } +h2 { font-size:18px } +h3 { font-size:16px } +h4 { font-size:14px } +h5 { font-size:13px } +h6 { font-size:12px } + +/* For headlines at the top of a view, add space */ +/* 20090224-changed green fade to gold header image */ +h1, h2, h3 { + background-image: url(html/images/brand/gold_header.png); + background-repeat: no-repeat; + padding:10px 0px 10px 12px; + } + +li { + margin-bottom:8px; + margin-top:8px; + } + +/* Footer includes space and a gray line above the company logo */ +#footer { + padding-top:10px; + margin-top:20px; + border-top:1px solid #999; + font-family: Helvetica, sans-serif; + font-size: 11px; + color:#333; + } + +.listing { + font-family: "Courier New", Courier, mono; + color: #000000; + background-color: #FFFFCC; + margin: 5px 0px; + } + +.code, pre { + font-family: "Courier New", Courier, mono; + font-size: 13px; + color: #000000; + } + +.step { + /* background-color: #EEE; */ + /* margin: 10px 0px; */ + color: #111; + /* border-bottom:2px solid #EEE; */ + } + +.substep { + background-color: #EEE; + } + + +/* Figure/Listing/Table titles are centered and gray */ +p.table { + color: #999; + font-weight: bold; + padding-top: 5px; + } + +table { + border: solid #999 1px; + table-layout: auto; + font-size: 13px; + } + +td, th { + border: solid #999 1px; + padding: 5px; + vertical-align:top; + } + +/* 20070522-replaced gray with green background to match gradiant color for title */ +th { + background-color:#FDDD1F; /* background-color:#acd79b; + background-color:#999; + color:#FFF; */ + } + +div.ol.p { + margin-left: 3em; + } + +/* Make all ordered/unordered list items appear in bold gray */ +div ol > li, div ul > li { + font-weight:bold; + color: #333; + } + +div ol > p, div ul > p, div li > p { + font-weight:normal; + } + +/* Make all H4 and H5 items appear in bold gray against a light green background */ +div h5, div h4 { + padding:5px 0px 5px 12px; + background-color:#FFFF66; + /* background-color: #EEE; */ + font-weight:bold; + color: #000000; + } + + +/* Notes stand out using a light top & bottom borders with dark gray text */ +p.note { + /* color: #03C; */ + /* background-color: #FFFF99; */ + color: #333; + padding: 5px; + margin-left: 1em; + margin-right: 1em; + border-top: solid #BBB thin; + border-bottom: solid #BBB thin; + } + + +/* Figure/Listing/Table titles are centered and gray */ +p.figure { + color: #333; + text-align: center; + font-weight: bold; + } + +/* highly visible red background and white text for things that need fixing before release */ +/* SHOULD NOT BE PRESENT IN RELEASED PRODUCTS */ +.fix { + background-color: red; + font-weight: bold; + color: white; + } + +.question { + font-style:italic; + font-weight:bold; + color: #555; + } + +.titleSmall { + font-family: Helvetica, sans-serif; + font-size: 10px; + } + + +.plain { + font-family: Helvetica, sans-serif; + font-size: 12px; + font-style: normal; + line-height: normal; + font-weight: normal; + font-variant: normal; + color: #000000; + text-decoration: none; + } + +a:link { color: #0033CC } +a:visited { color: #555555 } +a:hover { color: #0033CC } diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/html/codescanner.htm --- a/core/com.nokia.carbide.cpp.codescanner/html/codescanner.htm Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner/html/codescanner.htm Mon Apr 06 14:56:28 2009 -0500 @@ -1,32 +1,31 @@ - - - - - - CodeScanner User Guide - - - - - -

 

- - - - - - - - -

-

 

-

 

-

 

-

Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
License: http://www.eclipse.org/legal/epl-v10.html

-

CodeScanner User Guide

-

Version 2.1.1; February, 2009

-

 

- + + + + + + CodeScanner User Guide + + + + + +

 

+ + + + + + + + +

+

 

+

 

+

Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
License: http://www.eclipse.org/legal/epl-v10.html

+

CodeScanner User Guide

+

Version 2.1.3; April, 2009

+

 

+ \ No newline at end of file diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/html/customizing_cs.htm --- a/core/com.nokia.carbide.cpp.codescanner/html/customizing_cs.htm Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner/html/customizing_cs.htm Mon Apr 06 14:56:28 2009 -0500 @@ -1,294 +1,299 @@ - -Customizing CodeScanner Rules - - - - -
-

Customizing CodeScanner Rules

-
-

The CodeScanner command line tool currently accepts an XML configuration file, which controls scanning behavior, like the file types to ignore and which rules to apply. Using the elements contained here makes it possible to customize the scanning rules to include new rules unique to your development environment.

-

This page describes the format of CodeScanner config file (codescannerconfig.xml), which is used for the following purposes:

- -

CODESCANNERCONFIG.XML File

-

The CodeScanner config file is an XML formatted file created by CodeScanner when a scan is performed or when the CodeScaner preference settings are exported. The file contains the following elements:

- -

Arguments Element

-

Each Arguments element contains one or more of the following arguments:

- -

An example of an Arguments element:

-

<arguments>
-     <input>C:\Symbian\9.2\Epoc32\include</input>
-     <input>C:\CodeScanner_Tests\includes</input>
-     <lxr>http://s60lxr/source/</lxr>
-     - <lxrversion>S60_3_2_200736</lxrversion>
-     <outputformat>html|std</outputformat>
-     <timestampedoutput>on</timestampedoutput>
- </arguments>

-

Sources Element

-

Each Sources element can contain one or more Excludes elements.

- -

An example of a Sources element:

-

<sources>
-     <exclude>.*\.avi</exclude>
-     <exclude>.*\.bmp</exclude>
-     <exclude>.*\.jpg</exclude>
-     <exclude>.*\\test\\.*</exclude>
- </sources>

-

Scripts Element

-

Each Scripts element can contain one or more Script elements, each of which corresponds to a CodeScanner script (each script applies a CodeScanner rule):

- -

Complete list of currently supported Script elements with default attributes:

-

<scripts>
-
-<accessArrayElementWithoutCheck category="codereview" enable="true" severity="low"/>
-<accessArrayElementWithoutCheck2 category="codereview" enable="true" severity="low"/>
-<activestart category="codereview" enable="true" severity="low"/>
-<activestop category="codereview" enable="true" severity="low"/>
-<arraypassing category="performance" enable="true" severity="medium"/>
-<arrayptrcleanup category="codereview" enable="true" severity="low"/>
-<assertdebuginvariant category="codingstandards" enable="true" severity="low"/>
-
-<baddefines category="codingstandards" enable="true" severity="low"/>
-<baseconstruct category="codereview" enable="true" severity="low"/>
-
-<callActiveObjectWithoutCheckingOrStopping category="codereview" enable="true" severity="low"/> <changenotification category="codereview" enable="true" severity="low"/>
-<cleanup category="codingstandards" enable="true" severity="low"/>
-<commentcode category="codereview" enable="true" severity="low"/>
-<connect category="canpanic" enable="true" severity="high"/>
-<ConnectAndDontCloseMemberVariable category="functionality" enable="true" severity="medium"/> <constnames category="codingstandards" enable="true" severity="low"/>
-<consttdescptr category="codingstandards" enable="true" severity="low"/>
-<controlornull category="canpanic" enable="true" severity="high"/>
-<ctltargettype category="functionality" enable="true" severity="medium"/>
-
-<debugrom category="performance" enable="true" severity="medium"/>
-<declarename category="codingstandards" enable="true" severity="low"/>
-<deleteMemberVariable category="canpanic" enable="true" severity="high"/>
-<destructor category="canpanic" enable="true" severity="high"/>
-<doubleSemiColon category="codereview" enable="true" severity="low"/>
-<driveletters category="codingstandards" enable="true" severity="low"/>
-
-<eikbuttons category="localisation" enable="true" severity="medium"/>
-<eikonenvstatic category="performance" enable="true" severity="medium"/>
-<enummembers category="codingstandards" enable="true" severity="low"/>
-<enumnames category="codingstandards" enable="true" severity="low"/>
-<exportinline category="functionality" enable="true" severity="medium"/>
-<exportpurevirtual category="functionality" enable="true" severity="medium"/>
-
-<foff category="codereview" enable="true" severity="low"/>
-<forbiddenwords category="codingstandards" enable="true" severity="low">
-    <wordsRE>Epoc|Nokia Mobile Phones|NMP|(^|\s)S60</wordsRE>
-</forbiddenwords>
-<forgottoputptroncleanupstack category="codereview" enable="true" severity="low"/>
-<friend category="codereview" enable="true" severity="low"/>
-
-<goto category="codingstandards" enable="true" severity="low"/>
-
-<ifassignments category="codingstandards" enable="true" severity="low"/>
-<ifpreprocessor category="codingstandards" enable="true" severity="low"/>
-<inheritanceorder category="canpanic" enable="true" severity="high"/>
-<intleaves category="codereview" enable="true" severity="low"/>
-
-<jmp category="codingstandards" enable="true" severity="low"/>
-
-<leave category="canpanic" enable="true" severity="high"/>
-<LeaveNoError category="functionality" enable="true" severity="medium"/>
-<leavingoperators category="codereview" enable="true" severity="low"/>
-<LFunctionCantLeave category="codereview" enable="true" severity="low"> <LFunctionIgnoreRE>RunL</LFunctionIgnoreRE> </LFunctionCantLeave>
-<longlines category="codingstandards" enable="true" length="160" severity="low"/>
-
-<magicnumbers category="codingstandards" enable="true" severity="low"/>
-<mclassdestructor category="codingstandards" enable="true" severity="low"/>
-<memberlc category="canpanic" enable="true" severity="high"/>
-<membervariablecallld category="codingstandards" enable="true" severity="low"/>
-<missingcancel category="codingstandards" enable="true" severity="low"/>
-<missingcclass category="canpanic" enable="true" severity="high">     <cclassIgnoreRE>CBase</cclassIgnoreRE>
-</missingcclass>
-<mmpsourcepath category="codingstandards" enable="true" severity="low"/>
-<multilangrsc category="codereview" enable="true" severity="low"/>
-<multipledeclarations category="codingstandards" enable="true" severity="low"/>
-<multipleinheritance category="functionality" enable="true" severity="medium"/>
-<mydocs category="functionality" enable="true" severity="medium"/>
-
-<namespace category="codingstandards" enable="true" severity="low"/>
-<newlreferences category="codingstandards" enable="true" severity="low"/>
-<noleavetrap category="codereview" enable="true" severity="low"/>
-<nonconsthbufc category="codingstandards" enable="true" severity="low"/>
-<nonconsttdesc category="codingstandards" enable="true" severity="low"/>
-<nonleavenew category="codereview" enable="true" severity="low"/>
-<nonunicodeskins category="codereview" enable="true" severity="low"/>
-<null category="codingstandards" enable="true" severity="low"/>
-
-<open category="canpanic" enable="true" severity="high">     <openIgnoreRE>RDesReadStream|RDesWriteStream</openIgnoreRE>
-</open>
-
-<pointertoarrays category="performance" enable="true" severity="medium"/>
-<pragmadisable category="codingstandards" enable="true" severity="low"/>
-<pragmamessage category="codingstandards" enable="true" severity="low"/>
-<pragmaother category="codereview" enable="true" severity="low"/>
-<privateinheritance category="codingstandards" enable="true" severity="low"/>
-<pushaddrvar category="canpanic" enable="true" severity="high"/>
-<pushmember category="canpanic" enable="true" severity="high"/>
-
-<readresource category="canpanic" enable="true" severity="high"/>
-<resourcenotoncleanupstack category="codereview" enable="true" severity="low"/>
-<resourcesonheap category="codingstandards" enable="true" severity="low"/> <returndescriptoroutofscope category="canpanic" enable="true" severity="high"/>
-<rfs category="codereview" enable="true" severity="low"/>
-<rssnames category="codereview" enable="true" severity="low"/>
-
-<stringliterals category="codingstandards" enable="true" severity="low"/>
-<stringsinresourcefiles category="codereview" enable="true" severity="low"/>
-<struct category="codingstandards" enable="true" severity="low"/>
-
-<tcclasses category="functionality" enable="true" severity="medium"/>
-<tclassdestructor category="codingstandards" enable="true" severity="low"/>
-<todocomments category="codereview" enable="true" severity="low"/>
-<trapcleanup category="panic" enable="true" severity="high"/>
-<trapeleave category="performance" enable="true" severity="medium"/>
-<traprunl category="codingstandards" enable="true" severity="low"/>
-<trspassing category="functionality" enable="true" severity="medium"/>
-
-<uids category="codereview" enable="true" severity="low"/>
-<uncompressedaif category="performance" enable="true" severity="medium"/>
-<uncompressedbmp category="performance" enable="true" severity="medium"/>
-<unicodesource category="codereview" enable="true" severity="low"/>
-<userafter category="performance" enable="true" severity="medium"/>
-<userfree category="codereview" enable="true" severity="low"/>
-<userWaitForRequest category="codereview" enable="true" severity="low"/>
-
-<variablenames category="codingstandards" enable="true" severity="low"/>
-<voidparameter category="codingstandards" enable="true" severity="low"/>
-
-<worryingcomments category="codereview" enable="true" severity="low">     <worryRE>\!|\?|[Zz]{3}|kludge|workaround|\scrap|hack</worryRE>
-</worryingcomments>
-
-</scripts>

-

Severities Element

-

Each Severities element can contain one or more Severity elements, each of which corresponds to a severity level:

- -

Complete list of currently supported Severity elements:

-

<severities>
-     <high enable=”true”/>
-     - <medium enable=”true”/>
-     <low enable=”false”/>
- </severities>

-

Categories Element

-

Each Categories element can contain one or more Category elements, each of which corresponds to a category of CodeScanner scripts:

- -

Complete list of currently supported Category elements:

-

<categories>
-     <legal enable="true"/>
-     <panic enable=”true”>
-     <canpanic enable="true"/>
-     <functionality enable=”true”/>
-     <localisation enable="true"/>
-     <performance enable=”true”>
-     <codingstandards enable="true"/>
-     <documentation enable=”false”/>
-     <codereview enable=”false”/>
-     <other enable="true"/>
- </categories>

-

Customrules Element

-

Each custom rules element can contain one or more custom rule elements, each of which defines a custom rule to be applied by CodeScanner during scanning operation:

- -

Each custom rule element contains the following elements:

- -

An example of CustomRules element:

-

<customrules>
-     <customrule>
-         <name>myOwnRule</name>
-         <keyword type=”class”>CMyOwnClass</keyword>
-         <filetype>h</filetype>
-         <severity>low</severity>
-         <title>My own little CodeScanner rule</title>
-         <description>Locate the definition of CMyOwnClass::MyFunction()</description>
-         <link>http://www.myownsite.nokia.com</link>
-     </customrule>
- </customrules>

- - - + +Customizing CodeScanner Rules + + + + +
+

Customizing CodeScanner Rules

+
+

The CodeScanner command line tool currently accepts an XML configuration file, which controls scanning behavior, like the file types to ignore and which rules to apply. Using the elements contained here makes it possible to customize the scanning rules to include new rules unique to your development environment.

+

This page describes the format of CodeScanner config file (codescannerconfig.xml), which is used for the following purposes:

+ +

CODESCANNERCONFIG.XML File

+

The CodeScanner config file is an XML formatted file created by CodeScanner when a scan is performed or when the CodeScaner preference settings are exported. The file contains the following elements:

+ +

Arguments Element

+

Each Arguments element contains one or more of the following arguments:

+ +

An example of an Arguments element:

+

<arguments>
+     <input>C:\Symbian\9.2\Epoc32\include</input>
+     <input>C:\CodeScanner_Tests\includes</input>
+     <lxr>http://s60lxr/source/</lxr>
+     + <lxrversion>S60_3_2_200736</lxrversion>
+     <outputformat>html|std</outputformat>
+     <timestampedoutput>on</timestampedoutput>
+ </arguments>

+

Sources Element

+

Each Sources element can contain one or more Excludes elements.

+ +

An example of a Sources element:

+

<sources>
+     <exclude>.*\.avi</exclude>
+     <exclude>.*\.bmp</exclude>
+     <exclude>.*\.jpg</exclude>
+     <exclude>.*\\test\\.*</exclude>
+ </sources>

+

Scripts Element

+

Each Scripts element can contain one or more Script elements, each of which corresponds to a CodeScanner script (each script applies a CodeScanner rule):

+ +

Complete list of currently supported Script elements with default attributes:

+

<scripts>
+
+<accessArrayElementWithoutCheck category="codereview" enable="true" severity="low"/>
+<accessArrayElementWithoutCheck2 category="codereview" enable="true" severity="low"/>
+<activestart category="codereview" enable="true" severity="low"/>
+<activestop category="codereview" enable="true" severity="low"/>
+<arraypassing category="performance" enable="true" severity="medium"/>
+<arrayptrcleanup category="codereview" enable="true" severity="low"/>
+<assertdebuginvariant category="codingstandards" enable="true" severity="low"/>
+
+<baddefines category="codingstandards" enable="true" severity="low"/>
+<baseconstruct category="codereview" enable="true" severity="low"/>
+
+<callActiveObjectWithoutCheckingOrStopping category="codereview" enable="true" severity="low"/> <changenotification category="codereview" enable="true" severity="low"/>
+<cleanup category="codingstandards" enable="true" severity="low"/>
+<commentcode category="codereview" enable="true" severity="low"/>
+<connect category="canpanic" enable="true" severity="high"/>
+<ConnectAndDontCloseMemberVariable category="functionality" enable="true" severity="medium"/> <constnames category="codingstandards" enable="true" severity="low"/>
+<consttdescptr category="codingstandards" enable="true" severity="low"/>
+<controlornull category="canpanic" enable="true" severity="high"/>
+<crepository category="other" enable="true" severity="low"/>
+<ctltargettype category="functionality" enable="true" severity="medium"/>
+<customizableicons category="other" enable="true" severity="low">
+     <iconsRE>iconA.bmp|iconB.svg|iconC</iconsRE>
+ </customizableicons>
+
+<debugrom category="performance" enable="true" severity="medium"/>
+<declarename category="codingstandards" enable="true" severity="low"/>
+<deleteMemberVariable category="canpanic" enable="true" severity="high"/>
+<destructor category="canpanic" enable="true" severity="high"/>
+<doubleSemiColon category="codereview" enable="true" severity="low"/>
+<driveletters category="codingstandards" enable="true" severity="low"/>
+
+<eikbuttons category="localisation" enable="true" severity="medium"/>
+<eikonenvstatic category="performance" enable="true" severity="medium"/>
+<enummembers category="codingstandards" enable="true" severity="low"/>
+<enumnames category="codingstandards" enable="true" severity="low"/>
+<exportinline category="functionality" enable="true" severity="medium"/>
+<exportpurevirtual category="functionality" enable="true" severity="medium"/>
+
+<flags category="other" enable="true" severity="low"/>
+<foff category="codereview" enable="true" severity="low"/>
+<forbiddenwords category="codingstandards" enable="true" severity="low">
+    <wordsRE>Epoc|Nokia Mobile Phones|NMP|(^|\s)S60</wordsRE>
+</forbiddenwords>
+<forgottoputptroncleanupstack category="codereview" enable="true" severity="low"/>
+<friend category="codereview" enable="true" severity="low"/>
+
+<goto category="codingstandards" enable="true" severity="low"/>
+
+<ifassignments category="codingstandards" enable="true" severity="low"/>
+<ifpreprocessor category="codingstandards" enable="true" severity="low"/>
+<inheritanceorder category="canpanic" enable="true" severity="high"/>
+<intleaves category="codereview" enable="true" severity="low"/>
+
+<jmp category="codingstandards" enable="true" severity="low"/>
+
+<leave category="canpanic" enable="true" severity="high"/>
+<LeaveNoError category="functionality" enable="true" severity="medium"/>
+<leavingoperators category="codereview" enable="true" severity="low"/>
+<LFunctionCantLeave category="codereview" enable="true" severity="low"> <LFunctionIgnoreRE>RunL</LFunctionIgnoreRE> </LFunctionCantLeave>
+<longlines category="codingstandards" enable="true" length="160" severity="low"/>
+
+<magicnumbers category="codingstandards" enable="true" severity="low"/>
+<mclassdestructor category="codingstandards" enable="true" severity="low"/>
+<memberlc category="canpanic" enable="true" severity="high"/>
+<membervariablecallld category="codingstandards" enable="true" severity="low"/>
+<missingcancel category="codingstandards" enable="true" severity="low"/>
+<missingcclass category="canpanic" enable="true" severity="high">     <cclassIgnoreRE>CBase</cclassIgnoreRE>
+</missingcclass>
+<mmpsourcepath category="codingstandards" enable="true" severity="low"/>
+<multilangrsc category="codereview" enable="true" severity="low"/>
+<multipledeclarations category="codingstandards" enable="true" severity="low"/>
+<multipleinheritance category="functionality" enable="true" severity="medium"/>
+<mydocs category="functionality" enable="true" severity="medium"/>
+
+<namespace category="codingstandards" enable="true" severity="low"/>
+<newlreferences category="codingstandards" enable="true" severity="low"/>
+<noleavetrap category="codereview" enable="true" severity="low"/>
+<nonconsthbufc category="codingstandards" enable="true" severity="low"/>
+<nonconsttdesc category="codingstandards" enable="true" severity="low"/>
+<nonleavenew category="codereview" enable="true" severity="low"/>
+<nonunicodeskins category="codereview" enable="true" severity="low"/>
+<null category="codingstandards" enable="true" severity="low"/>
+
+<open category="canpanic" enable="true" severity="high">     <openIgnoreRE>RDesReadStream|RDesWriteStream</openIgnoreRE>
+</open>
+
+<pointertoarrays category="performance" enable="true" severity="medium"/>
+<pragmadisable category="codingstandards" enable="true" severity="low"/>
+<pragmamessage category="codingstandards" enable="true" severity="low"/>
+<pragmaother category="codereview" enable="true" severity="low"/>
+<privateinheritance category="codingstandards" enable="true" severity="low"/>
+<pushaddrvar category="canpanic" enable="true" severity="high"/>
+<pushmember category="canpanic" enable="true" severity="high"/>
+
+<readresource category="canpanic" enable="true" severity="high"/>
+<resourcenotoncleanupstack category="codereview" enable="true" severity="low"/>
+<resourcesonheap category="codingstandards" enable="true" severity="low"/> <returndescriptoroutofscope category="canpanic" enable="true" severity="high"/>
+<rfs category="codereview" enable="true" severity="low"/>
+<rssnames category="codereview" enable="true" severity="low"/>
+
+<stringliterals category="codingstandards" enable="true" severity="low"/>
+<stringsinresourcefiles category="codereview" enable="true" severity="low"/>
+<struct category="codingstandards" enable="true" severity="low"/>
+
+<tcclasses category="functionality" enable="true" severity="medium"/>
+<tclassdestructor category="codingstandards" enable="true" severity="low"/>
+<todocomments category="codereview" enable="true" severity="low"/>
+<trapcleanup category="panic" enable="true" severity="high"/>
+<trapeleave category="performance" enable="true" severity="medium"/>
+<traprunl category="codingstandards" enable="true" severity="low"/>
+<trspassing category="functionality" enable="true" severity="medium"/>
+
+<uids category="codereview" enable="true" severity="low"/>
+<uncompressedaif category="performance" enable="true" severity="medium"/>
+<uncompressedbmp category="performance" enable="true" severity="medium"/>
+<unicodesource category="codereview" enable="true" severity="low"/>
+<userafter category="performance" enable="true" severity="medium"/>
+<userfree category="codereview" enable="true" severity="low"/>
+<userWaitForRequest category="codereview" enable="true" severity="low"/>
+
+<variablenames category="codingstandards" enable="true" severity="low"/>
+<voidparameter category="codingstandards" enable="true" severity="low"/>
+
+<worryingcomments category="codereview" enable="true" severity="low">     <worryRE>\!|\?|[Zz]{3}|kludge|workaround|\scrap|hack</worryRE>
+</worryingcomments>
+
+ </scripts>

+

Severities Element

+

Each Severities element can contain one or more Severity elements, each of which corresponds to a severity level:

+ +

Complete list of currently supported Severity elements:

+

<severities>
+     <high enable=”true”/>
+     + <medium enable=”true”/>
+     <low enable=”false”/>
+ </severities>

+

Categories Element

+

Each Categories element can contain one or more Category elements, each of which corresponds to a category of CodeScanner scripts:

+ +

Complete list of currently supported Category elements:

+

<categories>
+     <legal enable="true"/>
+     <panic enable=”true”>
+     <canpanic enable="true"/>
+     <functionality enable=”true”/>
+     <localisation enable="true"/>
+     <performance enable=”true”>
+     <codingstandards enable="true"/>
+     <documentation enable=”false”/>
+     <codereview enable=”false”/>
+     <other enable="true"/>
+ </categories>

+

Customrules Element

+

Each custom rules element can contain one or more custom rule elements, each of which defines a custom rule to be applied by CodeScanner during scanning operation:

+ +

Each custom rule element contains the following elements:

+ +

An example of CustomRules element:

+

<customrules>
+     <customrule>
+         <name>myOwnRule</name>
+         <keyword type=”class”>CMyOwnClass</keyword>
+         <filetype>h</filetype>
+         <severity>low</severity>
+         <title>My own little CodeScanner rule</title>
+         <description>Locate the definition of CMyOwnClass::MyFunction()</description>
+         <link>http://www.myownsite.nokia.com</link>
+     </customrule>
+ </customrules>

+ + + \ No newline at end of file diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/html/images/brand/about_cpp.png Binary file core/com.nokia.carbide.cpp.codescanner/html/images/brand/about_cpp.png has changed diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/html/images/brand/background_carbide.jpg Binary file core/com.nokia.carbide.cpp.codescanner/html/images/brand/background_carbide.jpg has changed diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/html/release_notes.htm --- a/core/com.nokia.carbide.cpp.codescanner/html/release_notes.htm Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp.codescanner/html/release_notes.htm Mon Apr 06 14:56:28 2009 -0500 @@ -1,85 +1,97 @@ - - - - -Release Notes - - - -

CodeScanner Release Notes v2.1.2

- -

Changes from Previous Releases

- -

2.1.1

- -

2.1.0

- -

2.0.9

- -

2.0.8

- -

2.0.7

- -

What's New

- -

Fixed bugs and workarounds

- -

Workarounds for known issues:

- -

Technical support

-

The following support services are available:

- - - - + + + + +Release Notes + + + +

CodeScanner Release Notes v2.1.3

+ +

Changes from Previous Releases

+ +

2.1.2

+ +

2.1.1

+ +

2.1.0

+ +

2.0.9

+ +

2.0.8

+ +

2.0.7

+ +

What's New

+ +

Fixed bugs and workarounds

+ +

Workarounds for known issues:

+ +

Technical support

+

The following support services are available:

+ + + + diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/schema/CSConfig.ecore diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.codescanner/schema/CSConfig.genmodel diff -r 8254273d11c0 -r 887bd61e1328 core/com.nokia.carbide.cpp.doc.user/html/bugs_fixed.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/bugs_fixed.htm Mon Apr 06 14:33:24 2009 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/bugs_fixed.htm Mon Apr 06 14:56:28 2009 -0500 @@ -17,9 +17,14 @@

This is a comprehensive list of bugs fixed by release:

+

Bugs Fixed in v2.1.0

+

Bugs Fixed in v2.0.4