I want to check whether macro definitions start and end with an underscore. I used the following rule file, but the detection is not working.
source code:
test.c
#include<stdio.h>#define _pi_ 3.14voidfunc(){print("nothing to do");}intmain(){func();return0;}
I want to check whether macro definitions start and end with an underscore. I used the following rule file, but the detection is not working.
source code:
test.c
c_file_rules.xml
detection result