[cfe-dev] operatorCallExpr() AST matcher not working as expected
qiuyin at gmail.com
qiuyin at gmail.com
Wed Mar 20 20:07:07 PDT 2013
Just realized this has been by r168022 and i was using 3.2.
------¿¿¿¿------
¿¿¿ Yin Qiu <qiuyin at gmail.com>
To: <cfe-dev at cs.uiuc.edu>
Date: 2013年3月19日 星期二 上午08时51分25秒
Subject: operatorCallExpr() AST matcher not working as expected
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