1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 12:13:13 +02:00

More clang-format preparations

* We will have #ifdef.. then space+#define etc.. indentation.. but
  we obviously don't want that for include guards like
  #ifndef __struct_include__ because then like 3000+ lines in
  include/struct.h will start with a space. Now, clang-format has
  detection for this, but it doesn't kick in at 2 files (including
  include/struct.h) because of a minor thingy we fix here.
* Add clang-format off to a few tables, who were auto generated
  or copied anyway.
This commit is contained in:
Bram Matthys
2026-07-04 20:18:44 +02:00
parent 68e5ce7cbb
commit 2d8df60e14
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -2788,6 +2788,6 @@ typedef enum JsonRpcError {
#define BUILDVARSTRING_UNKNOWN_VAR_IS_EMPTY 0x4
#define BUILDVARSTRING_KEEP_SPACE_FOR_EMPTY_VAR 0x8
#endif /* __struct_include__ */
#include "dynconf.h"
#endif /* __struct_include__ */
+1 -1
View File
@@ -5,7 +5,7 @@
** $Id$
*/
#ifndef __versioninclude
#define __versioninclude 1
#define __versioninclude
/*
* Utility macros to convert version number constants to strings.
+2
View File
@@ -36,6 +36,7 @@ ModuleHeader MOD_HEADER
#endif
/* "<char1><char2>" followed by "<rest>" */
/* clang-format off */
static char *triples_txt[] = {
"aj", "fqtvxz",
"aq", "deghjkmnprtxyz",
@@ -478,6 +479,7 @@ static char *triples_txt[] = {
"zz", "cdfhjnpqrvx",
NULL, NULL
};
/* clang-format on */
/* Used for parsed triples: */
#define TRIPLES_REST_SIZE 32
+4
View File
@@ -54,6 +54,7 @@ typedef struct ConfusablesConversionTable {
* NOTE IF YOU TWEAK ANY OF THE SCORES BELOW:
* Then also update the sed command from a few lines up :)
*/
/* clang-format off */
UnicodeBlocks unicode_blocks[UNICODE_BLOCK_COUNT] =
{
{0x0000, 0x007F, "Basic Latin", 1},
@@ -395,8 +396,10 @@ UnicodeBlocks unicode_blocks[UNICODE_BLOCK_COUNT] =
{0xF0000, 0xFFFFF, "Supplementary Private Use Area-A", 1},
{0x100000, 0x10FFFF, "Supplementary Private Use Area-B", 1},
};
/* clang-format on */
/* Generated by Syzop */
/* clang-format off */
ConfusablesConversionTable confusables_table[] =
{
// starting with a0
@@ -5573,6 +5576,7 @@ ConfusablesConversionTable confusables_table[] =
{0x1fbf0, 0x4f}, // 🯰 -> O
{0x1fbf1, 0x6c}, // 🯱 -> l
};
/* clang-format on */
#define IS_IN_RANGE(c, f, l) (((c) >= (f)) && ((c) <= (l)))