You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this file header file, the formatter does not break line when line is too long :
Current format
#ifndefDOUBLE_LINKED_LIST_ESSENTIALS_H# defineDOUBLE_LINKED_LIST_ESSENTIALS_H# include"../double_linked_list/double_linked_list_essentials.h"# include"../node.h"/** * @brief The structure of a double linked list */typedefstructdouble_linked_list
{
t_node*head;
t_node*tail;
unsigned intsize;
} t_double_linked_list;
/** * @brief Create a new linked list, the linked list is LIFO (Last In First Out) * @return The new linked list */t_double_linked_list*double_linked_list_create(void);
/** * @brief Free the linked list and its content * @param obj The linked list to free * @param free_content The function to free the content of the linked list, can be NULL if the content is in stack */voiddouble_linked_list_free(t_double_linked_list*obj,
void (*free_content)(void*));
/** * @brief Remove head element from the linked list * @param obj The linked list to remove the last element * @param free_content The function to free the content of the linked list, * can be NULL if the content is in stack */voiddouble_linked_list_remove_head(t_double_linked_list*obj,
void (*free_content)(void*));
#endif// DOUBLE_LINKED_LIST_ESSENTIALS_H
Error line too long
Expected format
It should be :
#ifndefDOUBLE_LINKED_LIST_ESSENTIALS_H# defineDOUBLE_LINKED_LIST_ESSENTIALS_H# include"../double_linked_list/double_linked_list_essentials.h"# include"../node.h"/** * @brief The structure of a double linked list */typedefstructdouble_linked_list
{
t_node*head;
t_node*tail;
unsigned intsize;
} t_double_linked_list;
/** * @brief Create a new linked list, the linked list is LIFO (Last In First Out) * @return The new linked list */t_double_linked_list*double_linked_list_create(void);
/** * @brief Free the linked list and its content * @param obj The linked list to free * @param free_content The function to free the content of the linked list, can be NULL if the content is in stack */voiddouble_linked_list_free(t_double_linked_list*obj,
void (*free_content)(void*));
/** * @brief Remove head element from the linked list * @param obj The linked list to remove the last element * @param free_content The function to free the content of the linked list, * can be NULL if the content is in stack */voiddouble_linked_list_remove_head(
t_double_linked_list*obj,
void (*free_content)(void*));
#endif// DOUBLE_LINKED_LIST_ESSENTIALS_H
The text was updated successfully, but these errors were encountered:
MathieuSoysal
changed the title
Does not break line when line is too long.
Does not break line when line is too long in header
Apr 27, 2024
Introduction
In this file header file, the formatter does not break line when line is too long :
Current format
Error line too long
Expected format
It should be :
The text was updated successfully, but these errors were encountered: