Re: r338630 - [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into DeclContext

2018-08-05 Thread Abramo Bagnara via cfe-commits
Il 01/08/2018 22:48, Erich Keane via cfe-commits ha scritto: > Author: erichkeane > Date: Wed Aug 1 13:48:16 2018 > New Revision: 338630 > > URL: http://llvm.org/viewvc/llvm-project?rev=338630=rev > Log: > [AST][1/4] Move the bit-fields from TagDecl, EnumDecl and RecordDecl into > DeclContext >

Crash in MallocChecker

2016-11-30 Thread Abramo Bagnara via cfe-commits
Please consider to review and apply the attached patch. This is how to reproduce the bug: abramo@tester:~$ cat bug.cpp void f(int a, int b) { new char[a * b]; } abramo@tester:~$ ~/llvm-build/bin/clang -cc1 -analyze -analyzer-checker=cplusplus.NewDeleteLeaks bug.cpp clang:

Re: r282411 - [analyzer] Improve CastToStruct checker so it can also detect widening casts of struct data

2016-11-27 Thread Abramo Bagnara via cfe-commits
Il 26/09/2016 17:17, Daniel Marjamaki via cfe-commits ha scritto: > Author: danielmarjamaki > Date: Mon Sep 26 10:17:18 2016 > New Revision: 282411 > > URL: http://llvm.org/viewvc/llvm-project?rev=282411=rev > Log: > [analyzer] Improve CastToStruct checker so it can also detect widening casts >

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-10-30 Thread Abramo Bagnara via cfe-commits
Ping (I still need your feedback so that I can open a properly documented issue on bugzilla). Il 09/10/2015 09:58, Abramo Bagnara ha scritto: > Il 08/10/2015 23:36, Richard Smith ha scritto: >> There are some other open problems in this area: >> >> - RecursiveASTVisitor on nested InitListExprs is

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-10-09 Thread Abramo Bagnara via cfe-commits
Il 08/10/2015 23:36, Richard Smith ha scritto: > There are some other open problems in this area: > > - RecursiveASTVisitor on nested InitListExprs is currently worst-case > exponential time because it walks the syntactic and semantic forms > separately > - Tools such as "find all references to

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-10-08 Thread Abramo Bagnara via cfe-commits
Ping^2 Il 12/09/2015 09:40, Abramo Bagnara ha scritto: > Ping... > > Il 29/08/2015 10:01, Abramo Bagnara ha scritto: >> Il 28/08/2015 23:27, Richard Smith ha scritto: >>> On Tue, Aug 25, 2015 at 10:27 AM, Abramo Bagnara >>> > wrote:

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-09-23 Thread Abramo Bagnara via cfe-commits
Ping^2... Il 29/08/2015 10:01, Abramo Bagnara ha scritto: > Il 28/08/2015 23:27, Richard Smith ha scritto: >> On Tue, Aug 25, 2015 at 10:27 AM, Abramo Bagnara >> > wrote: >> >> Comparing the result of

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-08-29 Thread Abramo Bagnara via cfe-commits
Il 28/08/2015 23:27, Richard Smith ha scritto: On Tue, Aug 25, 2015 at 10:27 AM, Abramo Bagnara abramo.bagn...@bugseng.com mailto:abramo.bagn...@bugseng.com wrote: Comparing the result of InitListExpr::getSyntacticForm between r224986 and r245836 I've discovered that integer to char

Implict casts disappeared from syntactic init list expressions in C++

2015-08-25 Thread Abramo Bagnara via cfe-commits
Comparing the result of InitListExpr::getSyntacticForm between r224986 and r245836 I've discovered that integer to char implicit cast for integer literal 3 is no longer added to AST for C++ (while it is present in C). This is the source used to test: char v[10] = { 3 }; Taken in account that: