mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Added .clang-format style rules, clam-format script to automate formatting of ClamAV code, and preparing select files so that clang-format does not alter carefully formatted sections.
This commit is contained in:
parent
5ba88cab51
commit
38fe8b69a0
46 changed files with 957 additions and 678 deletions
|
@ -47,6 +47,8 @@
|
|||
|
||||
#include "mpool.h"
|
||||
|
||||
// clang-format off
|
||||
|
||||
#define AC_SPECIAL_ALT_CHAR 1
|
||||
#define AC_SPECIAL_ALT_STR_FIXED 2
|
||||
#define AC_SPECIAL_ALT_STR 3
|
||||
|
@ -86,6 +88,8 @@ static char boundary[256] = {
|
|||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
|
||||
static inline int insert_list(struct cli_matcher *root, struct cli_ac_patt *pattern, struct cli_ac_node *pt)
|
||||
{
|
||||
struct cli_ac_list *ph, *new, *ph_prev, *ph_add_after;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue