Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit e71711a

Browse files
committed
Giving hints to clang-format
Some pieces of code were not formatted properly by clang-format. This patch changes the code to help formatting. Signed-off-by: Thomas Cahuzac <[email protected]>
1 parent 269758d commit e71711a

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

bindings/c/ParameterFramework.h

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,20 @@ typedef struct
116116
typedef struct
117117
{
118118
/** Name of the criterion in the pfw configuration rules. */
119-
const char *name; //< Must not be null.
120-
bool inclusive; //< True if the criterion is inclusive, false if exclusive.
121-
/** Null terminated list of criterion value names.
122-
* @example { "Red", "Green", "Blue", NULL }
123-
*
124-
* For an exclusive criterion, the list must not contain more elements then
125-
* INT_MAX.
126-
* For an inclusive criterion, the list must not contain more elements then
127-
* sizeof(int) * BIT_CHAR - 1.
128-
* Ie: (int)1 << n must *not* overflow (UB),
129-
* were n is the number of element in the
130-
* list. @see pfwSetCriterion
131-
*/
119+
const char *name; //< Must not be null.
120+
bool inclusive; //< True if the criterion is inclusive, false if exclusive.
121+
122+
/** Null terminated list of criterion value names.
123+
* @example { "Red", "Green", "Blue", NULL }
124+
*
125+
* For an exclusive criterion, the list must not contain more elements then
126+
* INT_MAX.
127+
* For an inclusive criterion, the list must not contain more elements then
128+
* sizeof(int) * BIT_CHAR - 1.
129+
* Ie: (int)1 << n must *not* overflow (UB),
130+
* were n is the number of element in the
131+
* list. @see pfwSetCriterion
132+
*/
132133
const char **values; //< Must not be null.
133134
} PfwCriterion;
134135

@@ -190,7 +191,7 @@ bool pfwSetCriterion(PfwHandler *handle, const char name[], int value) NONNULL U
190191
/** Get a criterion value given its name.
191192
* Same usage as pfwSetCriterion except that value is an out param.
192193
* Get criterion will return the last value setted with pfwSetCriterion independantly of
193-
* pfwCommitCritenio.
194+
* pfwCommitCritenio.
194195
*/
195196
CPARAMETER_EXPORT
196197
bool pfwGetCriterion(const PfwHandler *handle, const char name[], int *value) NONNULL USERESULT;

0 commit comments

Comments
 (0)