Displaying 4 results from an estimated 4 matches for "cxxmembercallexpr".
2016 Nov 28
2
Looking for help with an ast matcher
...n
On Mon, Nov 28, 2016 at 10:50 PM Piotr Padlewski <piotr.padlewski at gmail.com>
wrote:
> Hi Mads,
> I formatted your matcher a little bit just to understand it:
>
> ifStmt(hasCondition(implicitCastExpr(hasImplicitDestinationType(
> isInteger()),
> has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("
> compare"))),
> hasArgument(0,
> declRefExpr().bind("str2")),
> callee(memberExpr(has(
> declRefExpr().bind("str1"))))))))).bind("cas...
2016 Nov 28
2
Looking for help with an ast matcher
Hi Piotr,
I think I found a working matcher: match
ifStmt(hasCondition(implicitCastExpr(hasImplicitDestinationType(isInteger()),
has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("compare"))),
hasArgument(0, declRefExpr().bind("str2")),
callee(memberExpr(has(declRefExpr().bind("str1"))))))))).bind("case1")
This one bind to both str1 and str2 in str1.compare(str2). I have included
a code segment below. I h...
2016 Nov 27
2
Looking for help with an ast matcher
Adding cfe-dev, because it is related to clang, not LLVM.
2016-11-27 22:34 GMT+01:00 Piotr Padlewski <piotr.padlewski at gmail.com>:
> Hi Mads,
> Can you provide the code that you run clang-query on, or at least AST for
> the fragment you want to match?
>
> Piotr
>
> 2016-11-26 22:27 GMT+01:00 Mads Ravn via llvm-dev <llvm-dev at lists.llvm.org
> >:
>
2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...VideoCapture' 'void (int)'
| | | `-ImplicitCastExpr 0x7ff113153190 <col:30,
col:69> 'int' <IntegralCast>
| | | `-ParenExpr 0x7ff113148a80 <col:30, col:69>
'bool'
| | | `-CXXMemberCallExpr 0x7ff113148a50
<col:31, col:68> 'bool'
| | | |-MemberExpr 0x7ff1131489f0 <col:31,
col:53> '<bound member function type>' .read 0x7ff1143a6f38
| | | | `-MemberExpr 0x7ff1131489b8 <col:31>
'FFM...