Skip to content

Commit 0f81a5e

Browse files
committed
deepsource check
1 parent 847d8c6 commit 0f81a5e

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

include/qcoroutine.h

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@
7979
_qCR_Oper_t; // skipcq: CXX-E2000
8080

8181
/*Construction statements*/
82-
#define _qCR_LCInit /* skipcq: CXX-E2000 */\
82+
// skipcq: CXX-E2000
83+
#define _qCR_LCInit \
8384
{ _qCR_PC_INIT_VAL, _qCR_UNDEFINED, QSTIMER_INITIALIZER } \
8485

85-
#define _qCR_RT( _PT_ ) /* skipcq: CXX-E2000 */ \
86+
// skipcq: CXX-E2000
87+
#define _qCR_RT( _PT_ ) \
8688
case (_qCR_TaskPC_t)(_PT_) : \
8789

8890
#define _qCR_JUMP( _DST_ ) switch (_DST_) // skipcq: CXX-W1164
@@ -94,7 +96,8 @@
9496

9597
#define _qCR_EXIT goto _qCR_ExitPoint // skipcq: CXX-E2000
9698

97-
#define _qCR_DEF /* skipcq: CXX-E2000 */\
99+
// skipcq: CXX-E2000
100+
#define _qCR_DEF \
98101
static _qCR_Instance_t _qCRState = _qCR_LCInit; \
99102
_qCR_Instance_t * const _qcr = &_qCRState \
100103

@@ -103,14 +106,16 @@
103106
/*! @cond */
104107
/*Core Statements*/
105108
/*=======================================================================*/
106-
#define _qCR_Start /* skipcq: CXX-E2000 */\
109+
// skipcq: CXX-E2000
110+
#define _qCR_Start \
107111
_qCR_DEF; \
108112
_qCR_JUMP( _qcr->instr ) { /* skipcq: CXX-W1197 */\
109113
_qCR_RT( _qCR_PC_INIT_VAL ) \
110114

111115

112116
/*=======================================================================*/
113-
#define _qCR_hStart( handle ) /* skipcq: CXX-E2000 */\
117+
// skipcq: CXX-E2000
118+
#define _qCR_hStart( handle ) \
114119
_qCR_DEF; \
115120
if ( NULL == (handle) ) { \
116121
(handle) = &_qCRState; \
@@ -120,28 +125,32 @@
120125
_qCR_RT( _qCR_PC_INIT_VAL ) \
121126

122127
/*=======================================================================*/
123-
#define _qCR_Dispose /* skipcq: CXX-E2000 */\
128+
// skipcq: CXX-E2000
129+
#define _qCR_Dispose \
124130
_qcr->instr = _qCR_PC_INIT_VAL; \
125131
} \
126132
_qCR_ExitPoint: Q_UNUSED(0) \
127133

128134

129135
/*=======================================================================*/
130-
#define _qCR_Yield /* skipcq: CXX-E2000 */\
136+
// skipcq: CXX-E2000
137+
#define _qCR_Yield \
131138
do { \
132139
_qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), _qCR_EXIT ); \
133140
} while ( qFalse ) \
134141

135142

136143
/*=======================================================================*/
137-
#define _qCR_Restart /* skipcq: CXX-E2000 */\
144+
// skipcq: CXX-E2000
145+
#define _qCR_Restart \
138146
do { \
139147
_qCR_LCON( _qcr->instr, _qCR_PC_INIT_VAL, Q_NONE, _qCR_EXIT ); \
140148
} while ( qFalse ) \
141149

142150

143151
/*=======================================================================*/
144-
#define _qCR_wu_Assert( condition ) /* skipcq: CXX-E2000 */\
152+
// skipcq: CXX-E2000
153+
#define _qCR_wu_Assert( condition ) \
145154
do { \
146155
_qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \
147156
if ( !(condition) ) { \
@@ -151,22 +160,25 @@
151160

152161

153162
/*=======================================================================*/
154-
#define _qCR_GetPosition( position ) /* skipcq: CXX-E2000 */\
163+
// skipcq: CXX-E2000
164+
#define _qCR_GetPosition( position ) \
155165
do { \
156166
_qCR_LCON( position, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \
157167
Q_UNUSED( (position) ); \
158168
} while ( qFalse ) \
159169

160170

161171
/*=======================================================================*/
162-
#define _qCR_RestoreFromPosition( position ) /* skipcq: CXX-E2000 */\
172+
// skipcq: CXX-E2000
173+
#define _qCR_RestoreFromPosition( position ) \
163174
do { \
164175
_qCR_LCON( _qcr->instr, (position), Q_NONE, _qCR_EXIT ); \
165176
} while ( qFalse ) \
166177

167178

168179
/*=======================================================================*/
169-
#define _qCR_Delay( dTime ) /* skipcq: CXX-E2000 */\
180+
// skipcq: CXX-E2000
181+
#define _qCR_Delay( dTime ) \
170182
do { \
171183
qCR_TimeoutSet( dTime ); \
172184
_qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \
@@ -177,7 +189,8 @@
177189

178190

179191
/*=======================================================================*/
180-
#define _qCR_wu_TmrAssert( condition, timeout ) /* skipcq: CXX-E2000 */\
192+
// skipcq: CXX-E2000
193+
#define _qCR_wu_TmrAssert( condition, timeout ) \
181194
do { \
182195
qCR_TimeoutSet( timeout ); \
183196
_qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \
@@ -188,13 +201,15 @@
188201

189202

190203
/*=======================================================================*/
191-
#define _qCR_do /* skipcq: CXX-E2000 */\
204+
// skipcq: CXX-E2000
205+
#define _qCR_do \
192206
do { \
193207
_qCR_LCON( _qcr->instr, __LINE__, _qCR_RT(__LINE__), Q_UNUSED(0) ); \
194208

195209

196210
/*=======================================================================*/
197-
#define _qCR_until( condition ) /* skipcq: CXX-E2000 */\
211+
// skipcq: CXX-E2000
212+
#define _qCR_until( condition ) \
198213
if ( !(condition) ) { \
199214
_qCR_EXIT; \
200215
} \

include/qedgecheck.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676

7777
/*! @cond */
7878
/*cppcheck-suppress misra-c2012-20.7 */
79-
#define _QEDGECHECK_REG_FCN_DEC(NAME) /* skipcq: CXX-E2000 */\
79+
// skipcq: CXX-E2000
80+
#define _QEDGECHECK_REG_FCN_DEC(NAME) \
8081
qBool_t NAME( const void *addr, qBool_t pinNumber ) \
8182

8283
_QEDGECHECK_REG_FCN_DEC( _qReg_32Bits );

0 commit comments

Comments
 (0)