Project

General

Profile

Actions

Bug #804

closed

Analyse Logiscope LFR_3.1.0.4 : Tr_ModelFonction Severity is High

Added by William Recart about 8 years ago. Updated about 6 years ago.

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

100%

Estimated time:
revision:
r0

Description

Rappel de la règle :
Tr_ModelFonction
Definition:
-----------
Use inline functions instead of macro-functions.

Example:
--------

// write
inline char *GetName(aClass &object) {
return(object.name);
}

// do not write
#define GetName(s) ((s)->name)

La règle n'est pas respectée dans 120 cas d'après Logiscope:
Fichier fsw_params.h : lignes 237, 238, 239, 241, 242, 243, 247, 248, 249, 251, 252, 253, 257, 258, 259, 261, 262, 263

Actions

Also available in: Atom PDF