Project

General

Profile

Actions

Bug #3126

closed

Analyse Logiscope LFR_3.2.0.21 : Tr_Pragma Severity is Medium

Added by William Recart over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
03/10/2018
Due date:
% Done:

0%

Estimated time:
revision:
r0

Description

Rappel de la règle :
Tr_Pragma
Definition:
-----------
No pre-processing instructions may be used, except for those specified in the
parameter list.

Parameters:
-----------
A list of strings defining the exceptions to this rule. The list can be empty.
"define": #define may be used
"include": #include may be used
"if": #if, #ifdef and #ifndef structures may be used
"pragma": #pragma may be used
"undef": #undef may be used
"line": #line may be used
"error": #error may be used
"none": # may be used alone

By default, only #line and # alone may not be used.

Justification:
--------------
Makes the code easier to read and understand.

La règle n'est pas respectée dans un cas :
lfr_cpu_usage_report.c line 33 : #error "Can't compute CPU usage using ticks on LFR"

Actions #1

Updated by William Recart over 5 years ago

  • Status changed from New to Closed

Contrairement a ce que dit la régle, Logiscope n'était pas conifugré pour accepter #error.
L'analyseur a été corrigé, aucune action sur le code attendu.

Actions

Also available in: Atom PDF