[cfe-dev] operatorCallExpr() AST matcher not working as expected
Yin Qiu
qiuyin at gmail.com
Mon Mar 18 17:51:25 PDT 2013
Hi,
Given this code snippet,
1 class Bar
2 {
3 public:
4 int operator()(int);
5 };
6
7 void foo()
8 {
9 Bar bar;
10 int i1;
11 bar(1);
12 i1 = bar(1);
13 }
An operatorCallExpr matcher is able to find the the first
CXXOperatorCallExpr at line 11 but not the one at line 12.
MatchASTVisitor seems to skip a CXXOperatorCallExpr node under a
BinaryOperator. Is this expected?
--
Yin
More information about the cfe-dev
mailing list