Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-11 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 34583. ayartsev added a comment. Updated the patch after r246978. Please review! http://reviews.llvm.org/D9040 Files: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/malloc.c Index: test/Analysis/malloc.c ==

Re: [PATCH] D12827: [analyzer] fix an error finding clang path

2015-09-12 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Thanks, Honggyu! http://reviews.llvm.org/D12827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-16 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping. http://reviews.llvm.org/D9040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-21 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping. http://reviews.llvm.org/D9040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2015-08-11 Thread Антон Ярцев via cfe-commits
ayartsev added inline comments. Comment at: lib/StaticAnalyzer/Core/RegionStore.cpp:2359 @@ -2314,1 +2358,3 @@ +RegionAndSymbolInvalidationTraits ITraits; +W.AddToWorkList(*I, ITraits); } Too much unnecessary passing around of RegionAndSymbolInvalidatio

Re: [PATCH] D6551: Improvements to scan-build.

2015-08-11 Thread Антон Ярцев via cfe-commits
ayartsev added a reviewer: zaks.anna. ayartsev removed a subscriber: zaks.anna. ayartsev updated this revision to Diff 31868. ayartsev added a comment. Hi Honggyu, thanks for updating the patch! The new patch contains changes introduced by r244400 (http://reviews.llvm.org/D10356) and r244673 pl

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

2015-08-14 Thread Антон Ярцев via cfe-commits
ayartsev added inline comments. Comment at: lib/StaticAnalyzer/Core/RegionStore.cpp:746 @@ -739,1 +745,3 @@ +return static_cast(this)->hasTrait(MR, IK); + } }; Hmm.. Either we completely encapsulate 'RegionAndSymbolInvalidationTraits' in the 'invalidateRegi

Re: [PATCH] D6551: Improvements to scan-build.

2015-08-24 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 32969. ayartsev added a comment. Updated the patch with r245621. OK to commit? http://reviews.llvm.org/D6551 Files: tools/scan-build/scan-build Index: tools/scan-build/scan-build === --- to

Re: [PATCH] D8774: [analyzer] Prevent ccc/c++-analyzer from hanging on Windows.

2015-08-25 Thread Антон Ярцев via cfe-commits
ayartsev closed this revision. ayartsev added a comment. Committed as r241201 http://reviews.llvm.org/D8774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9357: [analyzer] Support spaces in compiler path and arguments.

2015-08-25 Thread Антон Ярцев via cfe-commits
ayartsev closed this revision. ayartsev added a comment. Merged with http://reviews.llvm.org/D8774. http://reviews.llvm.org/D9357 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-08-25 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 33134. http://reviews.llvm.org/D9040 Files: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/malloc.c Index: test/Analysis/malloc.c === --- test/Analysis/malloc.c +++ test/Analys

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-08-25 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Please review! Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:158 @@ +157,3 @@ +/// zero-allocated memory returned by 'realloc(ptr, 0)'. +struct ReallocSizeZero { + void Profile(llvm::FoldingSetNodeID &ID) const { zaks.anna

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-01 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping http://reviews.llvm.org/D9040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-01 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 33740. http://reviews.llvm.org/D9040 Files: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/malloc.c Index: test/Analysis/malloc.c === --- test/Analysis/malloc.c +++ test/Analys

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-01 Thread Антон Ярцев via cfe-commits
ayartsev added inline comments. Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:523 @@ -510,2 +522,3 @@ REGISTER_MAP_WITH_PROGRAMSTATE(ReallocPairs, SymbolRef, ReallocPair) +REGISTER_MAP_WITH_PROGRAMSTATE(ReallocSizeZeroFlag, SymbolRef, ReallocSizeZero) --

Re: [PATCH] D6551: Improvements to scan-build.

2015-09-02 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Removed trailing whitespaces and committed as r246710. Thanks for reviews and assistance! http://reviews.llvm.org/D6551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

Re: [PATCH] D9040: [analyzer] Make realloc(ptr, 0) handling equivalent to malloc(0).

2015-09-07 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping. http://reviews.llvm.org/D9040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16317: [Analyzer] Fix for PR23790: bind real value returned from strcmp when modelling strcmp.

2016-02-01 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 46538. ayartsev added a comment. Updated the patch, please review. http://reviews.llvm.org/D16317 Files: lib/StaticAnalyzer/Checkers/CStringChecker.cpp test/Analysis/string.c Index: test/Analysis/string.c ==

Re: [PATCH] D16317: [Analyzer] Fix for PR23790: bind real value returned from strcmp when modelling strcmp.

2016-02-08 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping. http://reviews.llvm.org/D16317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-12-28 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping. http://reviews.llvm.org/D14629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D16317: [Analyzer] Fix for PR23790: bind real value returned from strcmp when modelling strcmp.

2016-01-19 Thread Антон Ярцев via cfe-commits
ayartsev created this revision. ayartsev added a reviewer: zaks.anna. ayartsev added a subscriber: cfe-commits. The patch is a fix for [[ https://llvm.org/bugs/show_bug.cgi?id=23790 | PR23790 ]]. Call to StringRef::Compare() returning [1,0,-1] is replaced with the real call to strcmp to be more

[PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-11-12 Thread Антон Ярцев via cfe-commits
ayartsev created this revision. ayartsev added a reviewer: zaks.anna. ayartsev added subscribers: jordan_rose, krememek, sylvestre.ledru, cfe-commits. A simple INI configuration file for scan-build with options - aliases to scan-build command line arguments. This configuration file can be used to

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-11-13 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. In http://reviews.llvm.org/D14629#288478, @jroelofs wrote: > `CommonStuff.pm` (which could stand to have a more descriptive name, > `libscanbuild.pm` maybe?) and `scan-build.cfg` belong in `share`. Got it, I'll rename `CommonStuff.pm` and put it to `share` in the next

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-12-14 Thread Антон Ярцев via cfe-commits
ayartsev updated this revision to Diff 42762. ayartsev added a comment. Updated the patch following Laszlo's advises: + Changed config file format to YAML. + Dump current configuration. + Search for config file from the current folder and upper. In http://reviews.llvm.org/D14629#294023, @jroelofs

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-12-14 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Upd: Forgot to remove the printHash() subroutine from libscanbuild.pm. Using it locally for debug purpose. http://reviews.llvm.org/D14629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

Re: [PATCH] D14629: [analyzer] Configuration file for scan-build.

2015-12-21 Thread Антон Ярцев via cfe-commits
ayartsev added a comment. Ping http://reviews.llvm.org/D14629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits