Closed YizhuoZhai closed 1 year ago
Hi,
sorry for the slow response. This should work if you use the -X / --cpp flag to enable C++ mode.
weggli % weggli -X '{
switch(_) {
$x=$f<_>(_);
}
}' /tmp/test.cc
/tmp/test.cc:1
int test() {
switch(A) {
case AA: {
B = To<C>(D);
}
}
}```
Hi: I'm using the weggli to find the code pattern, but it returns nothing. I wonder if you have any hints for me to solve this problem. The pattern I want to find is :
An example from Chromiun is :
The command I use is:
I appreciate any help you can give.