search for: memberexpr

Displaying 9 results from an estimated 9 matches for "memberexpr".

2016 Nov 28
2
Looking for help with an ast matcher
...stinationType( > isInteger()), > has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName(" > compare"))), > hasArgument(0, > declRefExpr().bind("str2")), > callee(memberExpr(has( > declRefExpr().bind("str1"))))))))).bind("case1") > > And this is the AST part that we care about > |-IfStmt 0x7fba9625f5e8 <line:8:5, line:10:5> > | |-<<<NULL>>> > | |-<<<NULL>>> > | |-ImplicitCastExpr 0...
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 have attached a screenshot of this matcher working from clang-query. HOWEVER - when I try to use the matcher in clang-tidy it...
2019 Jun 09
2
Strange local variable cv::VideoCapture allocated
...eanups 0x7ff1131536e8 <line:483:5, line:484:32> 'cv::VideoCapture' | | `-ConditionalOperator 0x7ff1131536b8 <line:483:5, line:484:32> 'cv::VideoCapture' | | |-ImplicitCastExpr 0x7ff113153178 <line:483:5> 'bool' <LValueToRValue> | | | `-MemberExpr 0x7ff113148968 <col:5> 'bool' lvalue ->enable_ffmpeg_decoder_ 0x7ff114221ef0 | | | `-CXXThisExpr 0x7ff113148950 <col:5> 'xyz::StreamData *' this | | |-CXXBindTemporaryExpr 0x7ff113153620 <col:30, col:69> 'cv::VideoCapture' (CXXTemporary 0x7...
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 Jul 30
2
ICE in release/9.x when using LLVM_ENABLE_MODULES
...n seeing here: > > http://green.lab.llvm.org/green/job/clang-stage2-coverage-R/4124/console > > But it looks like the bot has turned green since July 19th, so I'm wondering whether you are still seeing the same failure if you use trunk? > > If I remember correctly, there was a MemberExpr node in the AST that was referencing the anonymous union in class Expected, but the parent class (class Expected) didn't contain the AST node for the anonymous union. > > On Mon, Jul 29, 2019 at 6:41 AM Brian Gesiak via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >>...
2007 Dec 22
0
[LLVMdev] random warnings
On Dec 20, 2007, at 3:56 PM, Mike Stump wrote: > They looked real enough to me: Fixed, thanks. -Chris > > > /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In > function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, > short int&)’: > /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: > 148: warning:
2005 Aug 10
1
Issues with Canoo WebTest
...ascript.NativeGlobal.constructError (NativeGlobal.java:597) [canoo] at org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java: 1324) [canoo] at org.mozilla.javascript.TokenStream.getToken (TokenStream.java:1302) [canoo] at org.mozilla.javascript.Parser.memberExprTail (Parser.java:1213) [canoo] at org.mozilla.javascript.Parser.memberExpr (Parser.java:1204) [canoo] at org.mozilla.javascript.Parser.unaryExpr (Parser.java:1115) [canoo] at org.mozilla.javascript.Parser.mulExpr(Parser.java: 1062) [canoo] at org.mozilla.java...
2007 Dec 20
2
[LLVMdev] random warnings
They looked real enough to me: /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: In function ‘bool<unnamed>::isFPS16Immediate(llvm::ConstantFPSDNode*, short int&)’: /Volumes/mrs5/net/llvm/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp: 148: warning: dereferencing type-punned pointer will break strict- aliasing rules
2019 Jul 29
4
ICE in release/9.x when using LLVM_ENABLE_MODULES
I ran into an LLVM/Clang crash when attempting to do the following: 1. Build Clang from the release/9.x branch source. 2. Use the Clang from (1) to build clangd on the release/9.x branch, with LLVM_ENABLE_MODULES=On. I wrote a script to reproduce the crash: https://gist.github.com/modocache/ac366ca9673b93bb21e75d3e72162608 At the above URL, you'll find a script `repro.sh` that reproduces