Skip to content

Commit 4149781

Browse files
committed
Fix warnings in Doxygen comments
1 parent b18f72e commit 4149781

File tree

1 file changed

+93
-1
lines changed

1 file changed

+93
-1
lines changed

src/Macros.hpp

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@
138138
#define LVARRAY_ASSERT_MSG( EXP, MSG ) ((void) 0)
139139
#endif
140140

141+
/**
142+
* @brief Conditionally throw an exception.
143+
* @param EXP an expression that will be evaluated as a predicate
144+
* @param MSG a message to log (any expression that can be stream inserted)
145+
* @param TYPE the type of exception to throw
146+
*/
141147
#define LVARRAY_THROW_IF( EXP, MSG, TYPE ) \
142148
do \
143149
{ \
@@ -221,6 +227,15 @@
221227
" " << #lhs << " = " << lhs << "\n" << \
222228
" " << #rhs << " = " << rhs << "\n" )
223229

230+
/**
231+
* @brief Throw an exception if @p lhs @p OP @p rhs.
232+
* @param lhs The left side of the operation.
233+
* @param OP The operation to apply.
234+
* @param NOP The opposite of @p OP, used in the message.
235+
* @param rhs The right side of the operation.
236+
* @param msg The message to diplay.
237+
* @param TYPE the type of exception to throw.
238+
*/
224239
#define LVARRAY_THROW_IF_OP_MSG( lhs, OP, NOP, rhs, msg, TYPE ) \
225240
LVARRAY_THROW_IF( lhs OP rhs, \
226241
msg << "\n" << \
@@ -236,6 +251,13 @@
236251
*/
237252
#define LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, ==, !=, rhs, msg )
238253

254+
/**
255+
* @brief Throw an exception if two values are equal.
256+
* @param lhs expression to be evaluated and used as left-hand side in comparison
257+
* @param rhs expression to be evaluated and used as right-hand side in comparison
258+
* @param msg a message to log (any expression that can be stream inserted)
259+
* @param TYPE the type of exception to throw
260+
*/
239261
#define LVARRAY_THROW_IF_EQ_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, ==, !=, rhs, msg, TYPE )
240262

241263
/**
@@ -245,6 +267,12 @@
245267
*/
246268
#define LVARRAY_ERROR_IF_EQ( lhs, rhs ) LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, "" )
247269

270+
/**
271+
* @brief Throw an exception if two values are equal.
272+
* @param lhs expression to be evaluated and used as left-hand side in comparison
273+
* @param rhs expression to be evaluated and used as right-hand side in comparison
274+
* @param TYPE the type of exception to throw
275+
*/
248276
#define LVARRAY_THROW_IF_EQ( lhs, rhs, TYPE ) LVARRAY_THROW_IF_EQ_MSG( lhs, rhs, "", TYPE )
249277

250278
/**
@@ -255,6 +283,13 @@
255283
*/
256284
#define LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, !=, ==, rhs, msg )
257285

286+
/**
287+
* @brief Throw an exception if two values are not equal.
288+
* @param lhs expression to be evaluated and used as left-hand side in comparison
289+
* @param rhs expression to be evaluated and used as right-hand side in comparison
290+
* @param msg a message to log (any expression that can be stream inserted)
291+
* @param TYPE the type of exception to throw
292+
*/
258293
#define LVARRAY_THROW_IF_NE_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, !=, ==, rhs, msg, TYPE )
259294

260295
/**
@@ -264,6 +299,12 @@
264299
*/
265300
#define LVARRAY_ERROR_IF_NE( lhs, rhs ) LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, "" )
266301

302+
/**
303+
* @brief Throw an exception if two values are not equal.
304+
* @param lhs expression to be evaluated and used as left-hand side in comparison
305+
* @param rhs expression to be evaluated and used as right-hand side in comparison
306+
* @param TYPE the type of exception to throw
307+
*/
267308
#define LVARRAY_THROW_IF_NE( lhs, rhs, TYPE ) LVARRAY_THROW_IF_NE_MSG( lhs, rhs, "", TYPE )
268309

269310
/**
@@ -274,6 +315,13 @@
274315
*/
275316
#define LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, >, <=, rhs, msg )
276317

318+
/**
319+
* @brief Throw an exception if one value compares greater than the other.
320+
* @param lhs expression to be evaluated and used as left-hand side in comparison
321+
* @param rhs expression to be evaluated and used as right-hand side in comparison
322+
* @param msg a message to log (any expression that can be stream inserted)
323+
* @param TYPE the type of exception to throw
324+
*/
277325
#define LVARRAY_THROW_IF_GT_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, >, <=, rhs, msg, TYPE )
278326

279327
/**
@@ -283,6 +331,12 @@
283331
*/
284332
#define LVARRAY_ERROR_IF_GT( lhs, rhs ) LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, "" )
285333

334+
/**
335+
* @brief Throw an exception if one value compares greater than the other.
336+
* @param lhs expression to be evaluated and used as left-hand side in comparison
337+
* @param rhs expression to be evaluated and used as right-hand side in comparison
338+
* @param TYPE the type of exception to throw
339+
*/
286340
#define LVARRAY_THROW_IF_GT( lhs, rhs, TYPE ) LVARRAY_THROW_IF_GT_MSG( lhs, rhs, "", TYPE )
287341

288342
/**
@@ -293,6 +347,13 @@
293347
*/
294348
#define LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, >=, <, rhs, msg )
295349

350+
/**
351+
* @brief Throw an exception if one value compares greater than or equal to the other.
352+
* @param lhs expression to be evaluated and used as left-hand side in comparison
353+
* @param rhs expression to be evaluated and used as right-hand side in comparison
354+
* @param msg a message to log (any expression that can be stream inserted)
355+
* @param TYPE the type of exception to throw
356+
*/
296357
#define LVARRAY_THROW_IF_GE_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, >=, <, rhs, msg, TYPE )
297358

298359
/**
@@ -302,9 +363,14 @@
302363
*/
303364
#define LVARRAY_ERROR_IF_GE( lhs, rhs ) LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "" )
304365

366+
/**
367+
* @brief Throw an exception if one value compares greater than or equal to the other.
368+
* @param lhs expression to be evaluated and used as left-hand side in comparison
369+
* @param rhs expression to be evaluated and used as right-hand side in comparison
370+
* @param TYPE the type of exception to throw
371+
*/
305372
#define LVARRAY_THROW_IF_GE( lhs, rhs, TYPE ) LVARRAY_THROW_IF_GE_MSG( lhs, rhs, "", TYPE )
306373

307-
308374
/**
309375
* @brief Raise a hard error if one value compares less than the other.
310376
* @param lhs expression to be evaluated and used as left-hand side in comparison
@@ -313,6 +379,13 @@
313379
*/
314380
#define LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, <, >=, rhs, msg )
315381

382+
/**
383+
* @brief Throw an exception if one value compares less than the other.
384+
* @param lhs expression to be evaluated and used as left-hand side in comparison
385+
* @param rhs expression to be evaluated and used as right-hand side in comparison
386+
* @param msg a message to log (any expression that can be stream inserted)
387+
* @param TYPE the type of exception to throw
388+
*/
316389
#define LVARRAY_THROW_IF_LT_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, <, >=, rhs, msg, TYPE )
317390

318391
/**
@@ -322,6 +395,12 @@
322395
*/
323396
#define LVARRAY_ERROR_IF_LT( lhs, rhs ) LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, "" )
324397

398+
/**
399+
* @brief Throw an exception if one value compares less than the other.
400+
* @param lhs expression to be evaluated and used as left-hand side in comparison
401+
* @param rhs expression to be evaluated and used as right-hand side in comparison
402+
* @param TYPE the type of exception to throw
403+
*/
325404
#define LVARRAY_THROW_IF_LT( lhs, rhs, TYPE ) LVARRAY_THROW_IF_LT_MSG( lhs, rhs, "", TYPE )
326405

327406
/**
@@ -332,6 +411,13 @@
332411
*/
333412
#define LVARRAY_ERROR_IF_LE_MSG( lhs, rhs, msg ) LVARRAY_ERROR_IF_OP_MSG( lhs, <=, >, rhs, msg )
334413

414+
/**
415+
* @brief Throw an exception if one value compares less than or equal to the other.
416+
* @param lhs expression to be evaluated and used as left-hand side in comparison
417+
* @param rhs expression to be evaluated and used as right-hand side in comparison
418+
* @param msg a message to log (any expression that can be stream inserted)
419+
* @param TYPE the type of exception to throw
420+
*/
335421
#define LVARRAY_THROW_IF_LE_MSG( lhs, rhs, msg, TYPE ) LVARRAY_THROW_IF_OP_MSG( lhs, <=, >, rhs, msg, TYPE )
336422

337423
/**
@@ -341,6 +427,12 @@
341427
*/
342428
#define LVARRAY_ERROR_IF_LE( lhs, rhs ) LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "" )
343429

430+
/**
431+
* @brief Throw an exception if one value compares less than or equal to the other.
432+
* @param lhs expression to be evaluated and used as left-hand side in comparison
433+
* @param rhs expression to be evaluated and used as right-hand side in comparison
434+
* @param TYPE the type of exception to throw
435+
*/
344436
#define LVARRAY_THROW_IF_LE( lhs, rhs, TYPE ) LVARRAY_THROW_IF_GE_MSG( lhs, rhs, "", TYPE )
345437

346438
/**

0 commit comments

Comments
 (0)