[clang] 937e63b - [X86] Fix x86-header-warnings.c test not detecting regressions as intended.

2020-04-08 Thread Pierre Gousseau via cfe-commits
Author: Pierre Gousseau Date: 2020-04-08T15:22:44+01:00 New Revision: 937e63b8d5e961c2a7da25558bbcdd5388182b67 URL: https://github.com/llvm/llvm-project/commit/937e63b8d5e961c2a7da25558bbcdd5388182b67 DIFF:

[clang] 08fab9e - [X86] Fix implicit sign conversion warnings in X86 headers.

2020-04-07 Thread Pierre Gousseau via cfe-commits
Author: Pierre Gousseau Date: 2020-04-07T11:25:08+01:00 New Revision: 08fab9ebecf72a682279d75489dc2460121cbeed URL: https://github.com/llvm/llvm-project/commit/08fab9ebecf72a682279d75489dc2460121cbeed DIFF:

r358285 - [asan] Add gcc 8's driver option -fsanitize=pointer-compare and -fsanitize=pointer-substract.

2019-04-12 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Fri Apr 12 07:14:58 2019 New Revision: 358285 URL: http://llvm.org/viewvc/llvm-project?rev=358285=rev Log: [asan] Add gcc 8's driver option -fsanitize=pointer-compare and -fsanitize=pointer-substract. Disabled by default as this is still an experimental feature.

r357480 - [Driver] Enable -fsanitize-address-globals-dead-stripping by default on PS4.

2019-04-02 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Apr 2 08:20:26 2019 New Revision: 357480 URL: http://llvm.org/viewvc/llvm-project?rev=357480=rev Log: [Driver] Enable -fsanitize-address-globals-dead-stripping by default on PS4. Can be safely enabled on PS4. Reviewed By: probinson Differential Revision:

r355190 - [Driver] Allow enum SanitizerOrdinal to represent more than 64 different sanitizer checks, NFC.

2019-03-01 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Fri Mar 1 02:05:15 2019 New Revision: 355190 URL: http://llvm.org/viewvc/llvm-project?rev=355190=rev Log: [Driver] Allow enum SanitizerOrdinal to represent more than 64 different sanitizer checks, NFC. enum SanitizerOrdinal has reached maximum capacity, this change

r354875 - revert r354873 as this breaks lldb builds.

2019-02-26 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Feb 26 05:50:29 2019 New Revision: 354875 URL: http://llvm.org/viewvc/llvm-project?rev=354875=rev Log: revert r354873 as this breaks lldb builds. Modified: cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/include/clang/Basic/Sanitizers.def

r354873 - [Driver] Allow enum SanitizerOrdinal to represent more than 64 different sanitizer checks, NFC.

2019-02-26 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Feb 26 05:30:14 2019 New Revision: 354873 URL: http://llvm.org/viewvc/llvm-project?rev=354873=rev Log: [Driver] Allow enum SanitizerOrdinal to represent more than 64 different sanitizer checks, NFC. enum SanitizerOrdinal has reached maximum capacity, this change

r352042 - Test commit: fix typo.

2019-01-24 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Thu Jan 24 03:44:24 2019 New Revision: 352042 URL: http://llvm.org/viewvc/llvm-project?rev=352042=rev Log: Test commit: fix typo. Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp URL:

r349508 - [Driver][PS4] Do not implicitly link against asan or ubsan if -nostdlib or -nodefaultlibs on PS4.

2018-12-18 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Dec 18 09:03:35 2018 New Revision: 349508 URL: http://llvm.org/viewvc/llvm-project?rev=349508=rev Log: [Driver][PS4] Do not implicitly link against asan or ubsan if -nostdlib or -nodefaultlibs on PS4. NFC for targets other than PS4. Respect -nostdlib and

r334096 - [Driver] Add flag "--dependent-lib=..." when enabling asan or ubsan on PS4.

2018-06-06 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Wed Jun 6 07:04:15 2018 New Revision: 334096 URL: http://llvm.org/viewvc/llvm-project?rev=334096=rev Log: [Driver] Add flag "--dependent-lib=..." when enabling asan or ubsan on PS4. NFC for targets other than PS4. Simplify users' workflow when enabling asan or ubsan and

r280702 - [clang-cl] Check that we are in clang cl mode before enabling support for the CL environment variable.

2016-09-06 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Sep 6 05:48:27 2016 New Revision: 280702 URL: http://llvm.org/viewvc/llvm-project?rev=280702=rev Log: [clang-cl] Check that we are in clang cl mode before enabling support for the CL environment variable. Checking for the type of the command line tokenizer should

Re: [PATCH] D23503: [clang-cl] Check that we are in clang cl mode before enabling support for the CL environment variable.

2016-09-06 Thread pierre gousseau via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL280702: [clang-cl] Check that we are in clang cl mode before enabling support for theā€¦ (authored by pgousseau). Changed prior to commit: https://reviews.llvm.org/D23503?vs=68020=70376#toc Repository:

[PATCH] D23503: [clang-cl] Check that we are in clang cl mode before enabling support for the CL environment variable.

2016-08-15 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added reviewers: rsmith, majnemer. pgousseau added subscribers: cfe-commits, wristow, gbedwell, probinson. Checking for the type of the command line tokenizer should not be the criteria to enable support for the CL environment variable, this change

Re: [PATCH] D22310: Make the test for fno-pch-timestamp compatible with read-only checkouts.

2016-07-14 Thread pierre gousseau via cfe-commits
pgousseau closed this revision. pgousseau added a comment. Committed in https://reviews.llvm.org/rL275415 https://reviews.llvm.org/D22310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D22310: Make the test for fno-pch-timestamp compatible with read-only checkouts.

2016-07-14 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In https://reviews.llvm.org/D22310#484017, @bkramer wrote: > lg Thanks for the review! https://reviews.llvm.org/D22310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r275415 - The test added in r275267 does not work on read-only checkouts because of the use of touch -m -t.

2016-07-14 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Thu Jul 14 08:58:27 2016 New Revision: 275415 URL: http://llvm.org/viewvc/llvm-project?rev=275415=rev Log: The test added in r275267 does not work on read-only checkouts because of the use of touch -m -t. Following Tom Rybka suggestion, the test files are now copied to a

[PATCH] D22310: Make the test for fno-pch-timestamp compatible with read-only checkouts.

2016-07-13 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added a reviewer: rsmith. pgousseau added subscribers: cfe-commits, trybka, bruno, gbedwell, wristow, probinson. The test added in r275267 does not work on read-only checkouts because of the use of touch -t. Following Tom Rybka suggestion, the test

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-07-13 Thread pierre gousseau via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275261: [PCH] Fix timestamp check on windows hosts. (authored by pgousseau). Changed prior to commit: http://reviews.llvm.org/D20867?vs=59887=63794#toc Repository: rL LLVM

r275261 - [PCH] Fix timestamp check on windows hosts.

2016-07-13 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Wed Jul 13 06:58:28 2016 New Revision: 275261 URL: http://llvm.org/viewvc/llvm-project?rev=275261=rev Log: [PCH] Fix timestamp check on windows hosts. On Linux, if the timestamp of a header file, included in the pch, is modified, then including the pch without

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-07-13 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D20867#482465, @rsmith wrote: > You have two independent functional changes in this patch: one adds a flag to > control the emission of timestamps into PCH files, and the other re-enables > timestamp checking on Win32. Please separate them

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-07-08 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D20867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-29 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D20867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-22 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D20867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-15 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D20867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-08 Thread pierre gousseau via cfe-commits
pgousseau added a comment. > > Are you asking for the 2 seconds tolerance to be part of this patch? > > > Or, as it seems the main problem here is the lack of a reproducible, are > > you ok with the idea of committing this patch first, to see if the > > inconsistent time stamps is still an

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-07 Thread Pierre Gousseau via cfe-commits
It seems Phabricator did not picked up Richard's message so I have manually copied and replied to it via Phabricator's web interface. Cheers, Pierre On 6 June 2016 at 21:53, Richard Smith <rich...@metafoo.co.uk> wrote: > On Wed, Jun 1, 2016 at 8:33 AM, pierre gousseau via cfe-commit

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-07 Thread pierre gousseau via cfe-commits
pgousseau added a comment. > > On Linux, if the timestamp of a header file, included in the pch, is > > modified, then including the pch without regenerating it causes a fatal > > error, which is reasonable. > > > On Windows the check is ifdefed out, allowing the compilation to continue >

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-07 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 59887. pgousseau added a comment. Following Bruno's comment: - Remove call to sleep using touch -m -a -t http://reviews.llvm.org/D20867 Files: include/clang/Driver/CC1Options.td include/clang/Frontend/FrontendOptions.h

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-02 Thread pierre gousseau via cfe-commits
pgousseau added inline comments. Comment at: test/PCH/include-timestamp.cpp:8 @@ +7,3 @@ +// RUN: sleep 1 +// RUN: not %clang_cc1 -include-pch %t %s 2>&1 | FileCheck -check-prefix=CHECK-TIMESTAMP %s + Without the sleep the test fails for me, as it seems the call

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-02 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 59355. pgousseau added a comment. Following Bruno's comments: - Update input files' name to match http://reviews.llvm.org/D20243 review. - Add llvm-bcanalyzer checks http://reviews.llvm.org/D20867 Files: include/clang/Driver/CC1Options.td

[PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-01 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added reviewers: rsmith, thakis. pgousseau added subscribers: cfe-commits, wristow, probinson, gbedwell, bruno, cameron314. On Linux, if the timestamp of a header file, included in the pch, is modified, then including the pch without regenerating it

Re: [PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-24 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D20243#437192, @thakis wrote: > Hm, the ASTReader code this works around is over 6 years old (r100866). Maybe > we could try enabling the access time check instead? Yes the issue described in ASTReader lacks a reproducible so it makes

Re: [PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-24 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 58207. pgousseau added a comment. Moving REQUIRE line higher following Bruno's comments. http://reviews.llvm.org/D20243 Files: lib/Frontend/FrontendActions.cpp lib/Serialization/ASTReader.cpp test/PCH/Inputs/pragma-once2-pch.h

Re: [PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-19 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D20243#433615, @thakis wrote: > Did you see http://reviews.llvm.org/D19815 ? Does that help? Warren might > have opinions on this. Yes thanks, I agree with Warren, this is a separate issue. In the test I am adding I avoid the issue that

Re: [PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-16 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 57324. pgousseau added a comment. Add newlines and change test's name following Paul's comments. http://reviews.llvm.org/D20243 Files: lib/Frontend/FrontendActions.cpp lib/Serialization/ASTReader.cpp test/PCH/Inputs/pragma-once2-pch.h

Re: [PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-16 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D20243#429811, @probinson wrote: > Please make sure the test files have newlines at the end. > "touch-pragma-once.cpp" should probably be named something like > "pragma-once-timestamp.cpp". Will fix thanks!

[PATCH] D20243: [PCH] Disable inclusion of timestamps when generating pch files on windows.

2016-05-13 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added a reviewer: rsmith. pgousseau added a subscriber: cfe-commits. On Linux, if a header file included in the pch is modified then a fatal error is emitted, which is reasonable. On Windows the check is ifdefed out, allowing the compilation to continue

Re: [PATCH] D16178: [analyzer] A quick fix on top of D12901/r257464

2016-01-14 Thread pierre gousseau via cfe-commits
pgousseau accepted this revision. pgousseau added a comment. This revision is now accepted and ready to land. LGTM! Thanks Artom for finding the bug and new test case, sorry for missing those in my patch! Removing "!IsNotTruncated" is definitely worth trying. Please commit if code owners are

Re: [PATCH] D12901: [Static Analyzer] Assertion "System is over constrained" after truncating 64 bits integers to 32 bits. (PR25078)

2016-01-12 Thread pierre gousseau via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL257464: [analyzer] Evaluate integral casts as cast symbols if truncations are detected. (authored by pgousseau). Changed prior to commit: http://reviews.llvm.org/D12901?vs=43120=44613#toc Repository:

r257464 - [analyzer] Evaluate integral casts as cast symbols if truncations are detected.

2016-01-12 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Jan 12 04:07:56 2016 New Revision: 257464 URL: http://llvm.org/viewvc/llvm-project?rev=257464=rev Log: [analyzer] Evaluate integral casts as cast symbols if truncations are detected. The current workaround for truncations not being modelled is that the evaluation of

r257467 - [analyzer] Fix RangeConstraintManager's pinning of single value ranges.

2016-01-12 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Tue Jan 12 04:40:45 2016 New Revision: 257467 URL: http://llvm.org/viewvc/llvm-project?rev=257467=rev Log: [analyzer] Fix RangeConstraintManager's pinning of single value ranges. This fix a bug in RangeSet::pin causing single value ranges to be considered non

Re: [PATCH] D12901: [Static Analyzer] Assertion "System is over constrained" after truncating 64 bits integers to 32 bits. (PR25078)

2016-01-11 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12901#320680, @zaks.anna wrote: > > This patch also fixes a bug in 'RangeSet::pin' causing single value ranges > > to not be considered conventionally ordered. > > > Can that fix be submitted as a separate patch? Is there a test for it?

Re: [PATCH] D13731: [Analyzer] Supporting function attributes in .model files.

2015-12-07 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D13731#302989, @zaks.anna wrote: > Pierre, > > Have you seen the post about API Notes? > http://llvm.cc/t/cfe-dev-clang-and-swift/331 > > I believe using API notes would be a better approach for adding annotations. > By the time the static

r254181 - Test commit

2015-11-26 Thread Pierre Gousseau via cfe-commits
Author: pgousseau Date: Thu Nov 26 16:08:58 2015 New Revision: 254181 URL: http://llvm.org/viewvc/llvm-project?rev=254181=rev Log: Test commit Remove tabs. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp Modified:

Re: [PATCH] D13731: [Analyzer] Supporting function attributes in .model files.

2015-11-23 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D13731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13731: [Analyzer] Supporting function attributes in .model files.

2015-11-17 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping! http://reviews.llvm.org/D13731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13731: [RFC][Analyzer] Supporting function attributes in .model files.

2015-10-26 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 38438. pgousseau added a comment. Following Anna's review: Remove unnecessary AST walk over declarations by reusing already captured declarations. Add handling of merge conflicts using Sema merge methods. Add condition at the end of

Re: [PATCH] D13731: [RFC][Analyzer] Supporting function attributes in .model files.

2015-10-19 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 37765. pgousseau added a comment. Following Gabor's review: Remove changes to UncheckedReturn checker. Add a test using the NonNullParamChecker checker. Abstract the origin of the attributes. An analyzer option "faux-attributes" is added. This is 'false'

Re: [PATCH] D13731: [RFC][Analyzer] Supporting function attributes in .model files.

2015-10-15 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 37466. pgousseau added a comment. Fix incorrect caching of model files declarations. http://reviews.llvm.org/D13731 Files: include/clang/Analysis/AnalysisContext.h include/clang/Analysis/CodeInjector.h

Re: [PATCH] D13731: [RFC][Analyzer] Supporting function attributes in .model files.

2015-10-15 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D13731#267905, @xazax.hun wrote: > Hi! Hi! Thank you for reviewing. > I have some high level questions and notes about this patch. > > I implemented the function modelling as a Google Summer of Code project and > Ted Kremenek was my

[PATCH] D13731: [RFC][Analyzer] Supporting function attributes in .model files.

2015-10-14 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added a subscriber: cfe-commits. Dear All, I would like to propose a patch for specifying function attributes in .model files to be used by the analyzer checkers. There are a number of checkers (such as UncheckedReturn) that contain hardcoded list of

Re: [PATCH] D12901: [Static Analyzer] Assertion "System is over constrained" after truncating 64 bits integers to 32 bits. (PR25078)

2015-10-08 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12901#262270, @zaks.anna wrote: > I agree with Gabor. We should investigate how we can model the overflow on a > cast correctly. Yes I agree with Gabor too. I meant this change as a temporary workaround only, I will investigate the

Re: [PATCH] D13482: Revised Initial patch for PS4 toolchain

2015-10-07 Thread pierre gousseau via cfe-commits
pgousseau added a comment. For some reasons the patch file I get from the "download raw diff link" does not contain the diff for the added .keep files? But the .keep files show up in phabricator, so I guess it is a phabricator issue? Repository: rL LLVM http://reviews.llvm.org/D13482

Re: [PATCH] D12901: [Static Analyzer] Intersecting ranges and 64 bit to 32 bit truncations causing "System is over constrained." assertions.

2015-10-02 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping ! http://reviews.llvm.org/D12901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12901: [Static Analyzer] Intersecting ranges and 64 bit to 32 bit truncations causing "System is over constrained." assertions.

2015-09-24 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 35604. pgousseau added a comment. Following Gabor's review: Add a test factoring 'index + 1' in an extra variable. Let me know if this looks reasonable ? Regards, Pierre http://reviews.llvm.org/D12901 Files:

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-24 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12571#252366, @dcoughlin wrote: > Looks good to me! Thanks Pierre! I will commit. Much appreciated thanks ! http://reviews.llvm.org/D12571 ___ cfe-commits mailing list

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-23 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 35505. pgousseau added a comment. Following Devin's review: Fix a comment in 'IsFirstBufInBound'. Remove incorrect assertion expecting 'RegionOffset::getOffset' to only return positives values. Add test cases for regions having negatives offsets. Updated

Re: [PATCH] D12901: [Static Analyzer] Intersecting ranges and 64 bit to 32 bit truncations causing "System is over constrained." assertions.

2015-09-23 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12901#248842, @xazax.hun wrote: > Hi! > > Thank you for the patch! Thanks for reviewing ! > What happens if you factor the "index + 1" expression out into a separate > variable? > E.g.: unsigned temp = index + 1; and use temp in the

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-18 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12571#248464, @dcoughlin wrote: > Here is a reduced test case: Very useful thanks ! Comment at: lib/StaticAnalyzer/Checkers/CStringChecker.cpp:198 @@ +197,3 @@ + + // Return true if the destination buffer of the copy

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-17 Thread pierre gousseau via cfe-commits
pgousseau added a comment. Ping ! http://reviews.llvm.org/D12571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12901: [Static Analyzer] Intersecting ranges and 64 bit to 32 bit truncations causing "System is over constrained." assertions.

2015-09-16 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 34900. pgousseau added a comment. Added some comments. http://reviews.llvm.org/D12901 Files: lib/StaticAnalyzer/Core/RangeConstraintManager.cpp lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp lib/StaticAnalyzer/Core/SimpleConstraintManager.h

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-09 Thread pierre gousseau via cfe-commits
pgousseau added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CStringChecker.cpp:843 @@ +842,3 @@ + if (!Length) +return true; + dcoughlin wrote: > There doesn't seem to be a test that cares about this returning true (as > compared to false).

Re: [PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-09 Thread pierre gousseau via cfe-commits
pgousseau updated the summary for this revision. pgousseau updated this revision to Diff 34359. pgousseau added a comment. Following Devin's review: Correct test for unknown length and unknown destination buffer. Add comment to 'IsFirstBufInBound' behavior regarding unknown states. Remove

[PATCH] D12571: [Analyzer] Fix assertions in commit r246345 (pr22954).

2015-09-02 Thread pierre gousseau via cfe-commits
pgousseau created this revision. pgousseau added reviewers: ayartsev, zaks.anna, dcoughlin, xazax.hun, ClockMan. pgousseau added a subscriber: cfe-commits. Fix assertions kindly reported by Gabor Horvath and Piotr Zegar caused by commit r246345 and reverted in r246479. Original review in

Re: [PATCH] D11832: [Patch] [Analyzer] false positive: Potential leak connected with memcpy (PR 22954)

2015-08-31 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D11832#235301, @dcoughlin wrote: > I will commit. Thanks for your work on this, Pierre! Much appreciated ! Thanks for your help. Repository: rL LLVM http://reviews.llvm.org/D11832 ___

Re: [PATCH] D11832: [Patch] [Analyzer] false positive: Potential leak connected with memcpy (PR 22954)

2015-08-24 Thread pierre gousseau via cfe-commits
pgousseau updated this revision to Diff 32955. pgousseau added a comment. Encapsulate 'RegionAndSymbolInvalidationTraits' by overriding 'AddToWorkList' following Anton's review. Also as pointed out by Devin's review: Add tests cases and handling for regions, bindings in super regions, and

Re: [PATCH] D11832: [Patch] [Analyzer] false positive: Potential leak connected with memcpy (PR 22954)

2015-08-17 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D11832#224929, @dcoughlin wrote: You should consider what should happen when the memcpy may write past the end of the fixed-size array and add tests that specify correct behavior for these cases. An important example is: struct Foo {