Parser alloc dealloc (#68) #84
Annotations
2 errors, 10 warnings, and 2 notices
src/parser.c:1:10 [clang-diagnostic-error]:
src/parser.c#L1
'ast.h' file not found
|
linter
Process completed with exit code 1.
|
tests/test_parser.c:24:6 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L24
variable 'regex' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:25:7 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L25
variable 'lexer' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:26:8 [cppcoreguidelines-avoid-non-const-global-variables]:
tests/test_parser.c#L26
variable 'parser' is non-const and globally accessible, consider making it const
|
tests/test_parser.c:72:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L72
function 'test_peek' has cognitive complexity of 62 (threshold 25)
|
tests/test_parser.c:108:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L108
function 'test_next' has cognitive complexity of 68 (threshold 25)
|
tests/test_parser.c:146:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L146
function 'test_expect' has cognitive complexity of 44 (threshold 25)
|
tests/test_parser.c:152:9 [cppcoreguidelines-init-variables]:
tests/test_parser.c#L152
variable 'ret' is not initialized
|
tests/test_parser.c:182:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L182
function 'test_parse_base' has cognitive complexity of 58 (threshold 25)
|
tests/test_parser.c:258:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L258
function 'test_parse_factor' has cognitive complexity of 120 (threshold 25)
|
tests/test_parser.c:313:5 [readability-function-cognitive-complexity]:
tests/test_parser.c#L313
function 'test_parse_term' has cognitive complexity of 174 (threshold 25)
|
Run clang-format on src/parser.c:
src/parser.c#L1
File src/parser.c does not conform to Custom style guidelines. (lines 1, 14, 15, 16, 27, 28, 29, 40, 42, 59, 60, 61, 78, 79, 80, 97, 98, 99, 116, 117, 121, 122, 124, 125, 126, 127, 133, 134, 135, 136, 138, 140, 141, 142, 148, 149, 150, 151, 157, 158)
|
Run clang-format on tests/test_parser.c:
tests/test_parser.c#L1
File tests/test_parser.c does not conform to Custom style guidelines. (lines 14, 15, 16, 17, 18, 19, 20, 28, 29, 30, 33, 34, 35, 41, 42, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 63, 64, 65, 67, 72, 73, 74, 76, 77, 79, 80, 82, 84, 85, 86, 88, 89, 91, 92, 93, 95, 96, 98, 99, 100, 101, 103, 108, 109, 110, 112, 113, 115, 116, 118, 120, 121, 122, 124, 126, 127, 129, 130, 131, 133, 134, 136, 137, 138, 139, 141, 146, 147, 148, 150, 152, 153, 154, 156, 157, 158, 159, 161, 162, 163, 165, 166, 167, 168, 170, 171, 172, 174, 182, 183, 184, 186, 187, 188, 189, 191, 193, 194, 195, 197, 198, 200, 201, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 215, 217, 218, 220, 222, 223, 224, 226, 227, 228, 229, 231, 232, 234, 236, 237, 239, 240, 241, 258, 259, 260, 262, 263, 264, 265, 267, 269, 270, 272, 273, 274, 275, 276, 278, 279, 280, 282, 283, 285, 286, 288, 289, 291, 293, 294, 295, 296, 297, 313, 314, 315, 317, 318, 319, 321, 323, 324, 326, 327, 329, 330, 331, 333, 334, 335, 337, 338, 339, 341, 342, 343, 344, 346, 348, 349, 351, 352, 353, 355, 356, 357, 359, 360, 362, 363, 365, 366, 368, 369, 371, 372, 374, 375, 377, 389, 390, 391, 393, 394, 395, 397, 399, 400, 401, 403, 405, 406, 407, 408, 410, 411, 412, 414, 415, 416, 417, 418, 420, 422, 423, 424, 426, 428, 429, 430, 431, 433, 434, 435, 436, 438, 439, 440, 441, 442, 444, 445, 446, 458, 459, 460, 462, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 479, 480, 481, 482, 483, 484, 485, 486, 488, 489, 490, 491, 492, 493, 494, 495, 496, 498, 499, 500, 502, 503, 504, 506, 507, 508, 510, 511, 513, 515, 517, 518, 519, 521, 522, 523, 525, 526, 527, 529, 530, 531, 533, 534, 535, 536, 538, 539, 540, 542, 543, 545, 546, 547, 548, 550, 552, 553, 554, 556, 557, 558, 560, 561, 562, 564, 565, 567, 568, 569, 570, 572, 574, 575, 576, 578, 579, 581, 582, 583, 584, 586, 588, 589, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 605, 608, 609, 610, 611, 612, 613)
|