weggli
weggli copied to clipboard
How to write a rule if keywords are in the code
e.g
void test()
{
__asm__ __volatile__ ("mov xxxxxx");
}
I queryed with '{__asm__ __volatile__ ();}' but nothing was matched.
Can weggli query correctly if keywords such as __volatile__ are in the code?
Your example worked without issue for me.
~
❯ cat c.c
void test()
{
__asm__ __volatile__ ("mov xxxxxx");
}
~
❯ weggli '{__asm__ __volatile__();}' c.c
/home/martijn/c.c:1
void test()
{
__asm__ __volatile__ ("mov xxxxxx");