Open QuiteHollow opened 1 year ago
Hello, please keep in mind that norminette has undefined behavior with code that doesn't compile.
This also causes norm to go into an infinite loop, and compiles fine with gcc -Wall -Wextra -Werror
.
Yes, I am aware that this is not normal code, but it is valid and it causes the same problem I mentioned before. It would be fine if it crashed norminette, but if it causes an infinite loop, this will break any application relying on norminette, such as the VSCode highlighter.
#include <stdio.h>
#define A() void
void break_it();
int main(int argc, char **argv)
{
break_it();
printf("argc: %d, argv[0]: %s\n", argc, argv[0]);
return (0);
}
A()
break_it()
{
}
Describe the bug Norminette goes into an infinite loop
Erroneous code
Additional infos
GNU/Linux Ubuntu 22.04.3 LTS
3.10.12
3.3.54
Additional context When using a norminette highlighter in VSCode together with autosave this really becomes an issue, because a lot of norminette processes get started that never finish and this will slow down the computer to a halt.