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

type-compatibility

type-compatibility-link

distinct-extern

Fully Partially checked
Axivion Bauhaus Suite

Include Page
Axivion Bauhaus Suite_V
Axivion Bauhaus Suite_V

CertC-DCL40Fully implemented
CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
LANG.STRUCT.DECL.IF
LANG.STRUCT.DECL.IO
Inconsistent function declarations
Inconsistent object declarations
Coverity
Include Page
Coverity_V
Coverity_V
MISRA C 2012 Rule 8.4Implemented
LDRA tool suite8.5.4

1 X, 17 D

Partially implemented
Parasoft C/C++test

Include Page
Parasoft_V
Parasoft_V

CERT_C-DCL40-a
CERT_C-DCL40-b

A declaration shall be visible when an object or function with external linkage is defined
If objects or functions are declared more than once their types shall be compatible

Parasoft Insure++



Runtime analysis

Polyspace Bug Finder

Include Page
Polyspace Bug Finder_V
Polyspace Bug Finder_V

Declaration mismatch

MISRA C:2012 Rule 5.1

MISRA C:2012 Rule 8.3


Mismatch between function or variable declarations

External identifiers shall be distinct

All declarations of an object or function shall use the same names and type qualifiers

PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
1510,776,778,779,789Fully implemented
PRQA QA-C++
Include Page
cplusplus:PRQA QA-C++_V
cplusplus:PRQA QA-C++_V

1510


RuleChecker
Include Page
RuleChecker_V
RuleChecker_V

type-compatibility

type-compatibility
-link

distinct-extern


Fully Partially checked

Related Guidelines

...