fix(clang-tidy): for clang, function cannot return bool if it takes no arguments ????
This commit is contained in:
parent
fd59d63c47
commit
fcfc7fedc9
4 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ static bool init_firsts_map(void)
|
|||
|
||||
// === Functions
|
||||
|
||||
bool grammar_init(void)
|
||||
int grammar_init(void)
|
||||
{
|
||||
// Initialize the firsts map
|
||||
bool success = init_firsts_map();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct firsts_list
|
|||
* @return PARSER_INIT_SUCCESS on success PARSER_INIT_ERROR on error
|
||||
* @warning Do not use outside the parser
|
||||
*/
|
||||
bool grammar_init(void);
|
||||
int grammar_init(void);
|
||||
|
||||
/*
|
||||
* @brief Closes the grammar submodule
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ static enum parser_state state = PARSER_STATE_NOT_INITIALIZED;
|
|||
|
||||
// === Functions
|
||||
|
||||
bool parser_init(void)
|
||||
int parser_init(void)
|
||||
{
|
||||
if (state == PARSER_STATE_READY)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ enum parser_state
|
|||
*
|
||||
* @return Returns false on error and true on success
|
||||
*/
|
||||
bool parser_init(void);
|
||||
int parser_init(void);
|
||||
|
||||
/* @brief Closes the parser module after use
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue