Project

General

Profile

Actions

Bug #806

closed

Analyse Logiscope LFR_3.1.0.4 : Tr_ParenArg Severity is High

Added by William Recart over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
19/10/2016
Due date:
% Done:

0%

Estimated time:
revision:
r0

Description

Rappel de la règle :
Tr_ParenArg
Definition:
-----------
Each occurrence of the macro parameters shall be enclosed in parenthesis
(or brackets) inside the macro definition.

Example:
--------

// do not write
#define GET_NAME(obj,ind) obj->name[ind]

// write
#define GET_NAME(obj,ind) (obj)->name[ind]

La règle n'est pas respectée dans 6 cas d'après Logiscope:
Fichier fsw_params.h : lignes 238, 239, 248, 249, 258, 259

Actions

Also available in: Atom PDF