fix(clang-tidy): for clang, function cannot return bool if it takes no arguments ????

This commit is contained in:
Matteo Flebus 2026-01-30 18:26:56 +01:00
parent fd59d63c47
commit fcfc7fedc9
4 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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

View file

@ -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)
{

View file

@ -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
*/