Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tool

Version

Checker

Description

Astrée
Include Page
Astrée_V
Astrée_V

local-object-scope

global-object-scope

Partially checked
Axivion Bauhaus Suite

Include Page
Axivion Bauhaus Suite_V
Axivion Bauhaus Suite_V

CertC-DCL19
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V

LANG.STRUCT.SCOPE.FILE
LANG.STRUCT.SCOPE.LOCAL

Scope could be file static
Scope could be local static

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

CC2.DCL19

Fully implemented

LDRA tool suite
 
Include Page
LDRA_V
LDRA_V
25 D, 61 D, 40 SFully implemented
Parasoft C/C++test
Include Page
Parasoft_V
Parasoft_V

CERT_C-DCL19-a

Declare variables as locally as possible

Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

CERT C: Rec. DCL19-C


Checks for:

  • Function or object declared without static specifier and referenced in only one file
  • Object defined beyond necessary scope

Rec. partially covered.

PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
1504, 1505, 1531, 1532, 3210, 3218
PVS-Studio

Include Page
PVS-Studio_V
PVS-Studio_V

V821
RuleChecker
Include Page
RuleChecker_V
RuleChecker_V

local-object-scope

global-object-scope

Partially checked

...