Apply pre-commit fixes
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
parent
98536513f6
commit
4252d4ccfb
@ -1,6 +1,4 @@
|
|||||||
---
|
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
AccessModifierOffset: -2
|
|
||||||
#AlignConsecutiveAssignments: true
|
#AlignConsecutiveAssignments: true
|
||||||
#AlignConsecutiveDeclarations: true
|
#AlignConsecutiveDeclarations: true
|
||||||
AllowShortFunctionsOnASingleLine: Inline
|
AllowShortFunctionsOnASingleLine: Inline
|
||||||
@ -14,4 +12,3 @@ SpaceAfterCStyleCast: true
|
|||||||
TabWidth: 4
|
TabWidth: 4
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
UseTab: ForIndentation
|
UseTab: ForIndentation
|
||||||
...
|
|
||||||
|
|||||||
@ -60,8 +60,7 @@ static const short _address_key_offsets[] = {
|
|||||||
1177, 1185, 1194, 1203, 1212, 1224, 1235, 1244,
|
1177, 1185, 1194, 1203, 1212, 1224, 1235, 1244,
|
||||||
1253, 1261, 1270, 1279, 1288, 1300, 1311, 1320,
|
1253, 1261, 1270, 1279, 1288, 1300, 1311, 1320,
|
||||||
1329, 1337, 1339, 1353, 1355, 1357, 1359, 1361,
|
1329, 1337, 1339, 1353, 1355, 1357, 1359, 1361,
|
||||||
1363, 1365, 1367, 1368, 1370, 1388, 0
|
1363, 1365, 1367, 1368, 1370, 1388, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const signed char _address_trans_keys[] = {
|
static const signed char _address_trans_keys[] = {
|
||||||
-32, -19, -16, -12, 34, 45, 61, 63,
|
-32, -19, -16, -12, 34, 45, 61, 63,
|
||||||
@ -237,8 +236,7 @@ static const signed char _address_trans_keys[] = {
|
|||||||
-97, -112, -65, -128, -65, -128, -113, 64,
|
-97, -112, -65, -128, -65, -128, -113, 64,
|
||||||
32, 126, -32, -19, -16, -12, 45, 46,
|
32, 126, -32, -19, -16, -12, 45, 46,
|
||||||
-62, -33, -31, -17, -15, -13, 48, 57,
|
-62, -33, -31, -17, -15, -13, 48, 57,
|
||||||
65, 90, 97, 122, 0
|
65, 90, 97, 122, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const signed char _address_single_lengths[] = {
|
static const signed char _address_single_lengths[] = {
|
||||||
0, 8, 0, 8, 0, 0, 0, 0,
|
0, 8, 0, 8, 0, 0, 0, 0,
|
||||||
@ -265,8 +263,7 @@ static const signed char _address_single_lengths[] = {
|
|||||||
2, 3, 3, 3, 4, 3, 3, 3,
|
2, 3, 3, 3, 4, 3, 3, 3,
|
||||||
2, 3, 3, 3, 4, 3, 3, 3,
|
2, 3, 3, 3, 4, 3, 3, 3,
|
||||||
2, 2, 6, 0, 0, 0, 0, 0,
|
2, 2, 6, 0, 0, 0, 0, 0,
|
||||||
0, 0, 1, 0, 6, 0, 0
|
0, 0, 1, 0, 6, 0, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const signed char _address_range_lengths[] = {
|
static const signed char _address_range_lengths[] = {
|
||||||
0, 8, 1, 8, 1, 1, 1, 1,
|
0, 8, 1, 8, 1, 1, 1, 1,
|
||||||
@ -293,8 +290,7 @@ static const signed char _address_range_lengths[] = {
|
|||||||
3, 3, 3, 3, 4, 4, 3, 3,
|
3, 3, 3, 3, 4, 4, 3, 3,
|
||||||
3, 3, 3, 3, 4, 4, 3, 3,
|
3, 3, 3, 3, 4, 4, 3, 3,
|
||||||
3, 0, 4, 1, 1, 1, 1, 1,
|
3, 0, 4, 1, 1, 1, 1, 1,
|
||||||
1, 1, 0, 1, 6, 0, 0
|
1, 1, 0, 1, 6, 0, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const short _address_index_offsets[] = {
|
static const short _address_index_offsets[] = {
|
||||||
0, 0, 17, 19, 36, 38, 40, 42,
|
0, 0, 17, 19, 36, 38, 40, 42,
|
||||||
@ -321,8 +317,7 @@ static const short _address_index_offsets[] = {
|
|||||||
917, 923, 930, 937, 944, 953, 961, 968,
|
917, 923, 930, 937, 944, 953, 961, 968,
|
||||||
975, 981, 988, 995, 1002, 1011, 1019, 1026,
|
975, 981, 988, 995, 1002, 1011, 1019, 1026,
|
||||||
1033, 1039, 1042, 1053, 1055, 1057, 1059, 1061,
|
1033, 1039, 1042, 1053, 1055, 1057, 1059, 1061,
|
||||||
1063, 1065, 1067, 1069, 1071, 1084, 0
|
1063, 1065, 1067, 1069, 1071, 1084, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const short _address_cond_targs[] = {
|
static const short _address_cond_targs[] = {
|
||||||
4, 6, 7, 9, 186, 3, 3, 3,
|
4, 6, 7, 9, 186, 3, 3, 3,
|
||||||
@ -485,8 +480,7 @@ static const short _address_cond_targs[] = {
|
|||||||
171, 172, 173, 174, 175, 176, 177, 178,
|
171, 172, 173, 174, 175, 176, 177, 178,
|
||||||
179, 180, 181, 182, 183, 184, 185, 186,
|
179, 180, 181, 182, 183, 184, 185, 186,
|
||||||
187, 188, 189, 190, 191, 192, 193, 194,
|
187, 188, 189, 190, 191, 192, 193, 194,
|
||||||
195, 196, 197, 0
|
195, 196, 197, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const signed char _address_cond_actions[] = {
|
static const signed char _address_cond_actions[] = {
|
||||||
0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
@ -649,8 +643,7 @@ static const signed char _address_cond_actions[] = {
|
|||||||
3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 3, 3, 3, 3,
|
||||||
3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 3, 3, 3, 3,
|
||||||
3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 3, 3, 3, 3,
|
||||||
3, 0, 0, 0
|
3, 0, 0, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const short _address_eof_trans[] = {
|
static const short _address_eof_trans[] = {
|
||||||
1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093,
|
1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093,
|
||||||
@ -677,8 +670,7 @@ static const short _address_eof_trans[] = {
|
|||||||
1254, 1255, 1256, 1257, 1258, 1259, 1260, 1261,
|
1254, 1255, 1256, 1257, 1258, 1259, 1260, 1261,
|
||||||
1262, 1263, 1264, 1265, 1266, 1267, 1268, 1269,
|
1262, 1263, 1264, 1265, 1266, 1267, 1268, 1269,
|
||||||
1270, 1271, 1272, 1273, 1274, 1275, 1276, 1277,
|
1270, 1271, 1272, 1273, 1274, 1275, 1276, 1277,
|
||||||
1278, 1279, 1280, 1281, 1282, 1283, 0
|
1278, 1279, 1280, 1281, 1282, 1283, 0};
|
||||||
};
|
|
||||||
|
|
||||||
static const int address_start = 1;
|
static const int address_start = 1;
|
||||||
static const int address_first_final = 196;
|
static const int address_first_final = 196;
|
||||||
@ -686,10 +678,8 @@ static const int address_error = 0;
|
|||||||
|
|
||||||
static const int address_en_main = 1;
|
static const int address_en_main = 1;
|
||||||
|
|
||||||
|
|
||||||
#line 112 "smtp-address-validator.rl"
|
#line 112 "smtp-address-validator.rl"
|
||||||
|
|
||||||
|
|
||||||
bool is_address(const char *p, const char *pe)
|
bool is_address(const char *p, const char *pe)
|
||||||
{
|
{
|
||||||
int cs = 0;
|
int cs = 0;
|
||||||
@ -698,7 +688,6 @@ bool is_address(const char* p, const char* pe)
|
|||||||
|
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
|
|
||||||
#line 675 "smtp-address-validator.cpp"
|
#line 675 "smtp-address-validator.cpp"
|
||||||
{
|
{
|
||||||
cs = (int) address_start;
|
cs = (int) address_start;
|
||||||
@ -706,7 +695,6 @@ bool is_address(const char* p, const char* pe)
|
|||||||
|
|
||||||
#line 124 "smtp-address-validator.rl"
|
#line 124 "smtp-address-validator.rl"
|
||||||
|
|
||||||
|
|
||||||
#line 680 "smtp-address-validator.cpp"
|
#line 680 "smtp-address-validator.cpp"
|
||||||
{
|
{
|
||||||
int _klen;
|
int _klen;
|
||||||
@ -714,15 +702,15 @@ bool is_address(const char* p, const char* pe)
|
|||||||
const signed char *_keys;
|
const signed char *_keys;
|
||||||
const signed char *_acts;
|
const signed char *_acts;
|
||||||
unsigned int _nacts;
|
unsigned int _nacts;
|
||||||
_resume: {}
|
_resume : {
|
||||||
|
}
|
||||||
if (p == pe && p != eof)
|
if (p == pe && p != eof)
|
||||||
goto _out;
|
goto _out;
|
||||||
if (p == eof) {
|
if (p == eof) {
|
||||||
if (_address_eof_trans[cs] > 0) {
|
if (_address_eof_trans[cs] > 0) {
|
||||||
_trans = (unsigned int) _address_eof_trans[cs] - 1;
|
_trans = (unsigned int) _address_eof_trans[cs] - 1;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
_keys = (_address_trans_keys + (_address_key_offsets[cs]));
|
_keys = (_address_trans_keys + (_address_key_offsets[cs]));
|
||||||
_trans = (unsigned int) _address_index_offsets[cs];
|
_trans = (unsigned int) _address_index_offsets[cs];
|
||||||
|
|
||||||
@ -773,7 +761,8 @@ bool is_address(const char* p, const char* pe)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_match: {}
|
_match : {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cs = (int) _address_cond_targs[_trans];
|
cs = (int) _address_cond_targs[_trans];
|
||||||
|
|
||||||
@ -783,12 +772,12 @@ bool is_address(const char* p, const char* pe)
|
|||||||
_nacts = (unsigned int) (*(_acts));
|
_nacts = (unsigned int) (*(_acts));
|
||||||
_acts += 1;
|
_acts += 1;
|
||||||
while (_nacts > 0) {
|
while (_nacts > 0) {
|
||||||
switch ( (*( _acts)) )
|
switch ((*(_acts))) {
|
||||||
{
|
|
||||||
case 0: {
|
case 0: {
|
||||||
{
|
{
|
||||||
#line 108 "smtp-address-validator.rl"
|
#line 108 "smtp-address-validator.rl"
|
||||||
result = true; }
|
result = true;
|
||||||
|
}
|
||||||
|
|
||||||
#line 762 "smtp-address-validator.cpp"
|
#line 762 "smtp-address-validator.cpp"
|
||||||
|
|
||||||
@ -797,7 +786,8 @@ bool is_address(const char* p, const char* pe)
|
|||||||
case 1: {
|
case 1: {
|
||||||
{
|
{
|
||||||
#line 108 "smtp-address-validator.rl"
|
#line 108 "smtp-address-validator.rl"
|
||||||
result = false; }
|
result = false;
|
||||||
|
}
|
||||||
|
|
||||||
#line 770 "smtp-address-validator.cpp"
|
#line 770 "smtp-address-validator.cpp"
|
||||||
|
|
||||||
@ -807,24 +797,22 @@ bool is_address(const char* p, const char* pe)
|
|||||||
_nacts -= 1;
|
_nacts -= 1;
|
||||||
_acts += 1;
|
_acts += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p == eof) {
|
if (p == eof) {
|
||||||
if (cs >= 196)
|
if (cs >= 196)
|
||||||
goto _out;
|
goto _out;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (cs != 0) {
|
if (cs != 0) {
|
||||||
p += 1;
|
p += 1;
|
||||||
goto _resume;
|
goto _resume;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_out: {}
|
_out : {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 125 "smtp-address-validator.rl"
|
#line 125 "smtp-address-validator.rl"
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,5 +4,3 @@ add_test_simple_schema(Issue::27
|
|||||||
set_tests_properties(Issue::27
|
set_tests_properties(Issue::27
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
WILL_FAIL 1)
|
WILL_FAIL 1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user