Displaying 9 results from an estimated 9 matches for "ifstmt".
2016 Nov 28
2
Looking for help with an ast matcher
...no document
on it on the clang page. So I wouldn't know how it works or what it does.
Best regards,
Mads Ravn
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")),
>...
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 on...
2018 Jan 23
1
[PDB] Error "DIA is not installed on the system" occured in `llvm::pdb::loadDataForExe()`.
...e/Symbolize.cpp#L403,
and `SymbolFilePDB::CalculateAbilities(PDB_ReaderType::DIA, ...)`, see https://github.com/llvm-mirror/lldb/blob/master/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp#L110.
1) We can see that the arguments of the two calls are both `PDB_ReaderType::DIA`, that means the first IfStmt
in `llvm::pdb::loadDataFromEXE(PDB_ReaderType Type, ...)` is temporarily useless. Is that right?
2) I have visual studio 2015 installed on my computer and there is no an environment variable called
VSINSTALLDIR. And the `LLVM_ENABLE_DIA_SDK` is 0, so every time need to call
`llvm::pdb::loadDataF...
2017 Mar 30
2
[GSoC 2017] Clang-based diff tool project
...t; int main(int argc, const char **argv) {
> if (argc > 2) {
> return 1;
> }
> switch (argc) {
> }
> while (false);
> int funkyVariable = 1;
> funkyVariable++;
> }
> ./clangDiff
> Change: SwitchStmt moved from line 2 to line 5
> Change: IfStmt moved from line 4 to line 2
>
Neat! :)
>
> Here is how it looks https://gist.github.com/Teemperor/b252bae4b2544f57d6bb9580a0e890e4 <https://gist.github.com/Teemperor/b252bae4b2544f57d6bb9580a0e890e4>
>
> Let us know if we can help you further with this!
I’d be happy...
2012 Feb 21
5
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
...) + 272
16 clang 0x00000000008ea0ff
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) +
271
17 clang 0x00000000008e66a7
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 39
18 clang 0x00000000008e9c42
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) +
594
19 clang 0x00000000008e9e40
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 272
20 clang 0x00000000008ea0ff
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*)...
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
> >:
>
2017 Mar 23
5
[GSoC 2017] Clang-based diff tool project
My original idea was to write a semantic diff tool that just does some simple things up front:
create an MD5 from all top level blocks of the code. Start by just finding matching blocks of code ('{' and '}', '(' and ')') and remember the source locations for these and their MD5 values. Run a normal diff on the code and see what blocks the diffs fall into. Then try
2012 Feb 21
0
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
...0000000008ea0ff
> clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) +
> 271
> 17 clang 0x00000000008e66a7
> clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 39
> 18 clang 0x00000000008e9c42
> clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) +
> 594
> 19 clang 0x00000000008e9e40
> clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt
> const&, bool, clang::CodeGen::AggValueSlot) + 272
> 20 clang 0x00000000008ea0ff
> clang::CodeGen::CodeGenFunction::Emit...
2018 Jan 23
0
MachineVerifier and undef
...t; and `SymbolFilePDB::CalculateAbilities(PDB_ReaderType::DIA, ...)`, see
> https://github.com/llvm-mirror/lldb/blob/master/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp#L110.
>
> 1) We can see that the arguments of the two calls are both
> `PDB_ReaderType::DIA`, that means the first IfStmt
> in `llvm::pdb::loadDataFromEXE(PDB_ReaderType Type, ...)` is temporarily
> useless. Is that right?
>
> 2) I have visual studio 2015 installed on my computer and there is no an
> environment variable called
> VSINSTALLDIR. And the `LLVM_ENABLE_DIA_SDK` is 0, so every time need...