[clang-tools-extra] r290784 - [clang-tidy] Add delete null pointer check.

2016-12-31 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sat Dec 31 06:45:59 2016 New Revision: 290784 URL: http://llvm.org/viewvc/llvm-project?rev=290784&view=rev Log: [clang-tidy] Add delete null pointer check. This check detects and fixes redundant null checks before deletes. Patch by: Gergely Angeli! Differential Revision: htt

r291430 - [analyzer] Add checker for iterators dereferenced beyond their range.

2017-01-09 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Jan 9 03:52:32 2017 New Revision: 291430 URL: http://llvm.org/viewvc/llvm-project?rev=291430&view=rev Log: [analyzer] Add checker for iterators dereferenced beyond their range. Patch by: Adam Balogh! Differential Revision: https://reviews.llvm.org/D25660 Added: cfe/

r279037 - [analyzer] Small cleanups when checkers retrieving statements from exploded

2016-08-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 18 02:54:50 2016 New Revision: 279037 URL: http://llvm.org/viewvc/llvm-project?rev=279037&view=rev Log: [analyzer] Small cleanups when checkers retrieving statements from exploded nodes. Differential Revision: https://reviews.llvm.org/D23550 Modified: cfe/trunk/li

r279041 - [analyzer] Added valist related checkers.

2016-08-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 18 03:43:26 2016 New Revision: 279041 URL: http://llvm.org/viewvc/llvm-project?rev=279041&view=rev Log: [analyzer] Added valist related checkers. Differential Revision: https://reviews.llvm.org/D15227 Added: cfe/trunk/lib/StaticAnalyzer/Checkers/ValistChecker.cpp

r279043 - revert [analyzer] Added valist related checkers.

2016-08-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 18 04:13:37 2016 New Revision: 279043 URL: http://llvm.org/viewvc/llvm-project?rev=279043&view=rev Log: revert [analyzer] Added valist related checkers. Removed: cfe/trunk/lib/StaticAnalyzer/Checkers/ValistChecker.cpp cfe/trunk/test/Analysis/Inputs/system-heade

r279425 - [analyzer] Correctly add assumptions based on array bounds.

2016-08-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Aug 22 05:07:32 2016 New Revision: 279425 URL: http://llvm.org/viewvc/llvm-project?rev=279425&view=rev Log: [analyzer] Correctly add assumptions based on array bounds. Also simplify the constraints generated by the checker. Differential Revision: https://reviews.llvm.org

r279427 - Reapply "[analyzer] Added valist related checkers."

2016-08-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Aug 22 06:21:30 2016 New Revision: 279427 URL: http://llvm.org/viewvc/llvm-project?rev=279427&view=rev Log: Reapply "[analyzer] Added valist related checkers." Differential Revision: https://reviews.llvm.org/D15227 Added: cfe/trunk/lib/StaticAnalyzer/Checkers/ValistCh

r299354 - [ASTImporter] Lookup SearchName instead of Name

2017-04-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Apr 3 04:30:20 2017 New Revision: 299354 URL: http://llvm.org/viewvc/llvm-project?rev=299354&view=rev Log: [ASTImporter] Lookup SearchName instead of Name When the SearchName is already calculated we should use that for the lookup. Patch by Peter Szecsi! Differential Re

r299355 - [ASTImporter] Fix for importing unnamed structs

2017-04-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Apr 3 06:57:11 2017 New Revision: 299355 URL: http://llvm.org/viewvc/llvm-project?rev=299355&view=rev Log: [ASTImporter] Fix for importing unnamed structs Patch by Peter Szecsi! Differential Revision: https://reviews.llvm.org/D30876 Modified: cfe/trunk/lib/AST/ASTIm

r299386 - Revert r299355 "[ASTImporter] Fix for importing unnamed structs"

2017-04-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Apr 3 16:06:45 2017 New Revision: 299386 URL: http://llvm.org/viewvc/llvm-project?rev=299386&view=rev Log: Revert r299355 "[ASTImporter] Fix for importing unnamed structs" It breaks windows bots. Modified: cfe/trunk/lib/AST/ASTImporter.cpp cfe/trunk/test/ASTMerg

[clang-tools-extra] r299638 - [clang-tidy] Check for forwarding reference overload in constructors.

2017-04-06 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Apr 6 04:56:42 2017 New Revision: 299638 URL: http://llvm.org/viewvc/llvm-project?rev=299638&view=rev Log: [clang-tidy] Check for forwarding reference overload in constructors. Patch by András Leitereg! Differential Revision: https://reviews.llvm.org/D30547 Added: c

[clang-tools-extra] r299645 - Attempt to fix build bots after r299638.

2017-04-06 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Apr 6 07:49:35 2017 New Revision: 299645 URL: http://llvm.org/viewvc/llvm-project?rev=299645&view=rev Log: Attempt to fix build bots after r299638. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-forwarding-reference-overload.cpp Modified: clang-tools-extra/

[clang-tools-extra] r299657 - [clang-tidy] Temporarily disable a test-case that does not work on windows.

2017-04-06 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Apr 6 10:58:57 2017 New Revision: 299657 URL: http://llvm.org/viewvc/llvm-project?rev=299657&view=rev Log: [clang-tidy] Temporarily disable a test-case that does not work on windows. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-forwarding-reference-overload

[clang-tools-extra] r300320 - [clang-tidy] Fixes to misc-forwarding-reference-overload check.

2017-04-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Apr 14 07:31:36 2017 New Revision: 300320 URL: http://llvm.org/viewvc/llvm-project?rev=300320&view=rev Log: [clang-tidy] Fixes to misc-forwarding-reference-overload check. * Style fixes to tests * Make it work consistently on all platforms Patch by András Leitereg! Modif

[clang-tools-extra] r292938 - [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-24 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Jan 24 09:18:11 2017 New Revision: 292938 URL: http://llvm.org/viewvc/llvm-project?rev=292938&view=rev Log: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer. Fixes PR30964. The old behavior can be achieved using a setting. Patch by: Andras Leitereg

r293874 - [analyzer] Fix an assertion fail in CStringSyntaxChecker.

2017-02-02 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Feb 2 02:20:54 2017 New Revision: 293874 URL: http://llvm.org/viewvc/llvm-project?rev=293874&view=rev Log: [analyzer] Fix an assertion fail in CStringSyntaxChecker. Differential Revision: https://reviews.llvm.org/D29384 Modified: cfe/trunk/lib/StaticAnalyzer/Checker

[clang-tools-extra] r306538 - [clang-tidy] Enable inline variable definitions in headers

2017-06-28 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Jun 28 05:47:35 2017 New Revision: 306538 URL: http://llvm.org/viewvc/llvm-project?rev=306538&view=rev Log: [clang-tidy] Enable inline variable definitions in headers Differential Revision: https://reviews.llvm.org/D34449 Added: clang-tools-extra/trunk/test/clang-tidy

r306648 - Factor out a functionality from isBeforeInTranslationUnit

2017-06-28 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Jun 28 23:53:13 2017 New Revision: 306648 URL: http://llvm.org/viewvc/llvm-project?rev=306648&view=rev Log: Factor out a functionality from isBeforeInTranslationUnit The first user of this API will be the cross translation unit functionality of the Static Analyzer which wi

r307468 - [analyzer] Fix a path in the developer manual

2017-07-08 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sat Jul 8 01:23:52 2017 New Revision: 307468 URL: http://llvm.org/viewvc/llvm-project?rev=307468&view=rev Log: [analyzer] Fix a path in the developer manual Patch by: Reka Nikolett Kovacs Modified: cfe/trunk/www/analyzer/checker_dev_manual.html Modified: cfe/trunk/www/a

[clang-tools-extra] r307791 - [clang-tidy] Add new modernize use unary assert check

2017-07-12 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Jul 12 06:43:35 2017 New Revision: 307791 URL: http://llvm.org/viewvc/llvm-project?rev=307791&view=rev Log: [clang-tidy] Add new modernize use unary assert check Patch by: Lilla Barancsuk Differential Revision: https://reviews.llvm.org/D35257 Added: clang-tools-extra

[clang-tools-extra] r308020 - [clang-tidy] Add bugprone-suspicious-memset-usage check

2017-07-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Jul 14 05:15:55 2017 New Revision: 308020 URL: http://llvm.org/viewvc/llvm-project?rev=308020&view=rev Log: [clang-tidy] Add bugprone-suspicious-memset-usage check Created new module bugprone and placed the check in that. Finds memset() calls with potential mistakes in th

[clang-tools-extra] r308021 - [clang-tidy] Add bugprone-undefined-memory-manipulation check

2017-07-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Jul 14 05:20:19 2017 New Revision: 308021 URL: http://llvm.org/viewvc/llvm-project?rev=308021&view=rev Log: [clang-tidy] Add bugprone-undefined-memory-manipulation check Patch by: Reka Nikolett Kovacs Differential Revision: https://reviews.llvm.org/D35051 Added: cla

[clang-tools-extra] r308022 - [clang-tidy] Minor documentation fix. NFC.

2017-07-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Jul 14 05:31:21 2017 New Revision: 308022 URL: http://llvm.org/viewvc/llvm-project?rev=308022&view=rev Log: [clang-tidy] Minor documentation fix. NFC. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/bugprone-undefined-memory-manipulation.rst Modified: clang

[clang-tools-extra] r308954 - [clang-tidy] Handle incomplete types in bugprone-undefined-memory-manipulation

2017-07-24 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Jul 24 23:52:08 2017 New Revision: 308954 URL: http://llvm.org/viewvc/llvm-project?rev=308954&view=rev Log: [clang-tidy] Handle incomplete types in bugprone-undefined-memory-manipulation check Patch by: Reka Nikolett Kovacs Differential Revision: https://reviews.llvm.org/

r323115 - [analyzer] Model and check unrepresentable left shifts

2018-01-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Jan 22 05:32:10 2018 New Revision: 323115 URL: http://llvm.org/viewvc/llvm-project?rev=323115&view=rev Log: [analyzer] Model and check unrepresentable left shifts Patch by: Reka Nikolett Kovacs Differential Revision: https://reviews.llvm.org/D41816 Modified: cfe/trun

r323589 - [ASTImporter] Add support to import some AST nodes:

2018-01-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sat Jan 27 08:11:45 2018 New Revision: 323589 URL: http://llvm.org/viewvc/llvm-project?rev=323589&view=rev Log: [ASTImporter] Add support to import some AST nodes: * CXXOperatorCallExpr * SizeOfPackExpr * DependentTemplateSpecializationType * DependentSizedArray * CXXTypeidExp

r323590 - Attempt to make the PS4 build bot happy.

2018-01-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sat Jan 27 08:38:56 2018 New Revision: 323590 URL: http://llvm.org/viewvc/llvm-project?rev=323590&view=rev Log: Attempt to make the PS4 build bot happy. Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp URL: http:

[clang-tools-extra] r295041 - [clang-tidy] Add readability-misleading-indentation check.

2017-02-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 14 04:03:27 2017 New Revision: 295041 URL: http://llvm.org/viewvc/llvm-project?rev=295041&view=rev Log: [clang-tidy] Add readability-misleading-indentation check. Differential Revision: https://reviews.llvm.org/D19586 Added: clang-tools-extra/trunk/clang-tidy/rea

r295186 - [analyzer] Proper caching in CallDescription objects.

2017-02-15 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Feb 15 09:35:56 2017 New Revision: 295186 URL: http://llvm.org/viewvc/llvm-project?rev=295186&view=rev Log: [analyzer] Proper caching in CallDescription objects. During the review of D29567 it turned out the caching in CallDescription is not implemented properly. In case

[clang-tools-extra] r295435 - [clang-tidy] Add cert-dcl58-cpp (do not modify the 'std' namespace) check.

2017-02-17 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Feb 17 02:52:51 2017 New Revision: 295435 URL: http://llvm.org/viewvc/llvm-project?rev=295435&view=rev Log: [clang-tidy] Add cert-dcl58-cpp (do not modify the 'std' namespace) check. Differential Revision: https://reviews.llvm.org/D23421 Added: clang-tools-extra/trunk

r297153 - [analyzer] Improve valist checks and move it out from alpha state.

2017-03-07 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Mar 7 10:04:23 2017 New Revision: 297153 URL: http://llvm.org/viewvc/llvm-project?rev=297153&view=rev Log: [analyzer] Improve valist checks and move it out from alpha state. This patch makes the valist check more robust to the different AST variants on different platforms

r297461 - [analyzer] Extend block in critical section check with C11 and Pthread APIs.

2017-03-10 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Mar 10 08:50:12 2017 New Revision: 297461 URL: http://llvm.org/viewvc/llvm-project?rev=297461&view=rev Log: [analyzer] Extend block in critical section check with C11 and Pthread APIs. Patch by Zoltan Daniel Torok! Differential Revision: https://reviews.llvm.org/D29567

r297619 - [analyzer] Fix a rare crash for valist check.

2017-03-13 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Mar 13 07:48:26 2017 New Revision: 297619 URL: http://llvm.org/viewvc/llvm-project?rev=297619&view=rev Log: [analyzer] Fix a rare crash for valist check. It looks like on some host-triples the result of a valist related expr can be a LazyCompoundVal. Handle that case in th

r297627 - [ASTImporter] Import fix of GCCAsmStmts w/ missing symbolic operands

2017-03-13 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Mar 13 10:32:24 2017 New Revision: 297627 URL: http://llvm.org/viewvc/llvm-project?rev=297627&view=rev Log: [ASTImporter] Import fix of GCCAsmStmts w/ missing symbolic operands Patch by Zoltan Gera! Differential Revision: https://reviews.llvm.org/D30831 Modified: cfe

[clang-tools-extra] r287107 - [clang-tidy] New check to prefer transparent functors to non-transparent ones.

2016-11-16 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Nov 16 08:42:10 2016 New Revision: 287107 URL: http://llvm.org/viewvc/llvm-project?rev=287107&view=rev Log: [clang-tidy] New check to prefer transparent functors to non-transparent ones. Added: clang-tools-extra/trunk/clang-tidy/modernize/UseTransparentFunctorsCheck.cp

r287763 - [ASTImporter] Added ability to import AtomicType nodes

2016-11-23 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Nov 23 09:24:23 2016 New Revision: 287763 URL: http://llvm.org/viewvc/llvm-project?rev=287763&view=rev Log: [ASTImporter] Added ability to import AtomicType nodes Patch by: Kareem Khazem Differential Revision: https://reviews.llvm.org/D26328 Modified: cfe/trunk/lib/A

[clang-tools-extra] r300699 - [clang-tidy] misc-misplaced-widening-cast: Disable checking of implicit widening casts by default.

2017-04-19 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Apr 19 09:55:58 2017 New Revision: 300699 URL: http://llvm.org/viewvc/llvm-project?rev=300699&view=rev Log: [clang-tidy] misc-misplaced-widening-cast: Disable checking of implicit widening casts by default. Patch by Ádám Balogh! Differential Revision: https://reviews.llv

r300703 - Remove unnecessary condition as suggested by clang-tidy. NFC

2017-04-19 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Apr 19 10:11:10 2017 New Revision: 300703 URL: http://llvm.org/viewvc/llvm-project?rev=300703&view=rev Log: Remove unnecessary condition as suggested by clang-tidy. NFC Patch by: Gergely Angeli! Differential Revision: https://reviews.llvm.org/D31938 Modified: cfe/tru

[clang-tools-extra] r301836 - Reorder release notes, fix missing link and a grammar issue.

2017-05-01 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon May 1 16:02:38 2017 New Revision: 301836 URL: http://llvm.org/viewvc/llvm-project?rev=301836&view=rev Log: Reorder release notes, fix missing link and a grammar issue. Patch by Réka Nikolett Kovács! Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified:

[clang-tools-extra] r302637 - [clang-tidy] Add new cert-dcl21-cpp check

2017-05-10 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed May 10 06:16:55 2017 New Revision: 302637 URL: http://llvm.org/viewvc/llvm-project?rev=302637&view=rev Log: [clang-tidy] Add new cert-dcl21-cpp check This check flags postfix operator++/-- declarations, where the return type is not a const object. Differential Revision:

r302879 - [analyzer] Avoid an allocation in Std C function modelling

2017-05-12 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri May 12 01:53:55 2017 New Revision: 302879 URL: http://llvm.org/viewvc/llvm-project?rev=302879&view=rev Log: [analyzer] Avoid an allocation in Std C function modelling Differential Revision: https://reviews.llvm.org/D33095 Modified: cfe/trunk/lib/StaticAnalyzer/Checker

r302880 - [analyzer] Add modelling of __builtin_assume

2017-05-12 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri May 12 02:02:54 2017 New Revision: 302880 URL: http://llvm.org/viewvc/llvm-project?rev=302880&view=rev Log: [analyzer] Add modelling of __builtin_assume Differential Revision: https://reviews.llvm.org/D33092 Added: cfe/trunk/test/Analysis/builtin-assume.c Modified:

r247423 - [Static Analyzer] Minor cleanups for the nullability checker.

2015-09-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 11 11:29:05 2015 New Revision: 247423 URL: http://llvm.org/viewvc/llvm-project?rev=247423&view=rev Log: [Static Analyzer] Minor cleanups for the nullability checker. Differential Revision: http://reviews.llvm.org/D12619 Modified: cfe/trunk/lib/StaticAnalyzer/Chec

r247426 - [Static Analyzer] Lambda support.

2015-09-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 11 11:55:01 2015 New Revision: 247426 URL: http://llvm.org/viewvc/llvm-project?rev=247426&view=rev Log: [Static Analyzer] Lambda support. Differential Revision: http://reviews.llvm.org/D12652 Added: cfe/trunk/test/Analysis/lambda-notes.cpp Modified: cfe/trunk

r247430 - [Static Analyzer] Properly clean up the dynamic type information for dead regions.

2015-09-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 11 12:19:57 2015 New Revision: 247430 URL: http://llvm.org/viewvc/llvm-project?rev=247430&view=rev Log: [Static Analyzer] Properly clean up the dynamic type information for dead regions. Differential Revision: http://reviews.llvm.org/D12767 Added: cfe/trunk/incl

r247444 - [Static Analyzer] Fixed a typo in a diagnostic message.

2015-09-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 11 13:41:50 2015 New Revision: 247444 URL: http://llvm.org/viewvc/llvm-project?rev=247444&view=rev Log: [Static Analyzer] Fixed a typo in a diagnostic message. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp Modified: cfe/trunk/lib/StaticAna

r247476 - [Static Analyzer] Properly cash the configuration option for lambda support.

2015-09-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 11 16:19:39 2015 New Revision: 247476 URL: http://llvm.org/viewvc/llvm-project?rev=247476&view=rev Log: [Static Analyzer] Properly cash the configuration option for lambda support. Modified: cfe/trunk/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp Modified: cfe/trun

r247532 - [Static Analyzer] Merge the Objective-C Generics Checker into Dynamic Type Propagation checker.

2015-09-13 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sun Sep 13 18:02:24 2015 New Revision: 247532 URL: http://llvm.org/viewvc/llvm-project?rev=247532&view=rev Log: [Static Analyzer] Merge the Objective-C Generics Checker into Dynamic Type Propagation checker. Differential Revision: http://reviews.llvm.org/D12381 Modified:

r247533 - [Static Analyzer] Remove a redundant file.

2015-09-13 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sun Sep 13 18:03:11 2015 New Revision: 247533 URL: http://llvm.org/viewvc/llvm-project?rev=247533&view=rev Log: [Static Analyzer] Remove a redundant file. Removed: cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCGenericsChecker.cpp Removed: cfe/trunk/lib/StaticAnalyzer/Checkers

r247590 - [Static Analyzer] Moving nullability checkers to a top level package.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 13:31:34 2015 New Revision: 247590 URL: http://llvm.org/viewvc/llvm-project?rev=247590&view=rev Log: [Static Analyzer] Moving nullability checkers to a top level package. Differential Revision: http://reviews.llvm.org/D12852 Added: cfe/trunk/test/Analysis/null

r247595 - [Static Analyzer] Moving nullability checkers out of alpha.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 13:48:55 2015 New Revision: 247595 URL: http://llvm.org/viewvc/llvm-project?rev=247595&view=rev Log: [Static Analyzer] Moving nullability checkers out of alpha. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/Checkers.td cfe/trunk/test/Analysis/nullability.m

r247598 - [Static Analyzer] Relaxing a caching out related assert.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 14:00:08 2015 New Revision: 247598 URL: http://llvm.org/viewvc/llvm-project?rev=247598&view=rev Log: [Static Analyzer] Relaxing a caching out related assert. Differential Revision: http://reviews.llvm.org/D12818 Modified: cfe/trunk/lib/StaticAnalyzer/Core/Expr

r247612 - [Static Analyzer] Nullability checker optimization.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 15:31:46 2015 New Revision: 247612 URL: http://llvm.org/viewvc/llvm-project?rev=247612&view=rev Log: [Static Analyzer] Nullability checker optimization. Differential Revision: http://reviews.llvm.org/D12848 Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/Nulla

r247614 - [Static Analyzer] Turn on some nullability checks by default.

2015-09-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Sep 14 15:34:06 2015 New Revision: 247614 URL: http://llvm.org/viewvc/llvm-project?rev=247614&view=rev Log: [Static Analyzer] Turn on some nullability checks by default. Differential Revision: http://reviews.llvm.org/D12858 Modified: cfe/trunk/lib/Driver/Tools.cpp M

r247739 - [Static Analyzer] Added an XFAIL test for inlining when the type inference involves generic types.

2015-09-15 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Sep 15 18:14:01 2015 New Revision: 247739 URL: http://llvm.org/viewvc/llvm-project?rev=247739&view=rev Log: [Static Analyzer] Added an XFAIL test for inlining when the type inference involves generic types. Added: cfe/trunk/test/Analysis/DynamicTypePropagation.m Adde

r248002 - [Static Analyzer] Use generics related information to infer dynamic types.

2015-09-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 18 11:43:27 2015 New Revision: 248002 URL: http://llvm.org/viewvc/llvm-project?rev=248002&view=rev Log: [Static Analyzer] Use generics related information to infer dynamic types. Differential Revision: http://reviews.llvm.org/D12916 Modified: cfe/trunk/lib/Static

r248021 - [analyzer] A fix for substraction of an integer from a pointer.

2015-09-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 18 14:13:22 2015 New Revision: 248021 URL: http://llvm.org/viewvc/llvm-project?rev=248021&view=rev Log: [analyzer] A fix for substraction of an integer from a pointer. Patch by Artem Dergachev! Differential Revision: http://reviews.llvm.org/D12725 Modified: cfe/

r248041 - [Static Analyzer] General type checker based on dynamic type information.

2015-09-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 18 16:15:37 2015 New Revision: 248041 URL: http://llvm.org/viewvc/llvm-project?rev=248041&view=rev Log: [Static Analyzer] General type checker based on dynamic type information. Differential Revision: http://reviews.llvm.org/D12973 Added: cfe/trunk/lib/StaticAnal

r248065 - [Static Analyzer] Fixed a false positive case in DynamicTypeChecker when dealing with forward declarations.

2015-09-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Sep 18 18:38:57 2015 New Revision: 248065 URL: http://llvm.org/viewvc/llvm-project?rev=248065&view=rev Log: [Static Analyzer] Fixed a false positive case in DynamicTypeChecker when dealing with forward declarations. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/Dyna

r245637 - [Static Analyzer] Made it easier to test new checkers using the test suite.

2015-08-20 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 20 17:59:49 2015 New Revision: 245637 URL: http://llvm.org/viewvc/llvm-project?rev=245637&view=rev Log: [Static Analyzer] Made it easier to test new checkers using the test suite. Modified: cfe/trunk/utils/analyzer/SATestBuild.py Modified: cfe/trunk/utils/analyzer

r245949 - [Static Analyzer] Fixed a typo in a diagnostic message.

2015-08-25 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Aug 25 11:27:03 2015 New Revision: 245949 URL: http://llvm.org/viewvc/llvm-project?rev=245949&view=rev Log: [Static Analyzer] Fixed a typo in a diagnostic message. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/ObjCGenericsChecker.cpp Modified: cfe/trunk/lib/StaticAn

r245951 - [Static Analyzer] Fix tests to reflect the change in the diagnostic message.

2015-08-25 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Aug 25 11:38:05 2015 New Revision: 245951 URL: http://llvm.org/viewvc/llvm-project?rev=245951&view=rev Log: [Static Analyzer] Fix tests to reflect the change in the diagnostic message. Modified: cfe/trunk/test/Analysis/generics.m Modified: cfe/trunk/test/Analysis/gene

r246105 - [Static Analyzer] Checks to catch nullability related issues.

2015-08-26 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Aug 26 18:17:43 2015 New Revision: 246105 URL: http://llvm.org/viewvc/llvm-project?rev=246105&view=rev Log: [Static Analyzer] Checks to catch nullability related issues. Differential Revision: http://reviews.llvm.org/D11468 Added: cfe/trunk/docs/analyzer/nullability.r

r246182 - [Static Analyzer] Make NonNullParamChecker emit implicit null dereference events.

2015-08-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 27 13:49:07 2015 New Revision: 246182 URL: http://llvm.org/viewvc/llvm-project?rev=246182&view=rev Log: [Static Analyzer] Make NonNullParamChecker emit implicit null dereference events. Differential Revision: http://reviews.llvm.org/D11433 Modified: cfe/trunk/inc

r246188 - [Static Analyzer] BugReporter.cpp:2869: Assertion failed: !RemainingNodes.empty() && "No error node found in the trimmed graph"

2015-08-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Aug 27 13:57:00 2015 New Revision: 246188 URL: http://llvm.org/viewvc/llvm-project?rev=246188&view=rev Log: [Static Analyzer] BugReporter.cpp:2869: Assertion failed: !RemainingNodes.empty() && "No error node found in the trimmed graph" The assertion is caused by reusing a

r246479 - Revert r246345 until an assertion is fixed.

2015-08-31 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Aug 31 15:10:35 2015 New Revision: 246479 URL: http://llvm.org/viewvc/llvm-project?rev=246479&view=rev Log: Revert r246345 until an assertion is fixed. Removed: cfe/trunk/test/Analysis/pr22954.c Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Me

r246818 - [Static Analyzer] Remove sinks from nullability checks.

2015-09-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Sep 3 18:16:21 2015 New Revision: 246818 URL: http://llvm.org/viewvc/llvm-project?rev=246818&view=rev Log: [Static Analyzer] Remove sinks from nullability checks. Differential Revision: http://reviews.llvm.org/D12445 Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/

r251014 - Attempt to fix build bot test failures.

2015-10-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Oct 22 08:23:18 2015 New Revision: 251014 URL: http://llvm.org/viewvc/llvm-project?rev=251014&view=rev Log: Attempt to fix build bot test failures. Modified: cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp cfe/trunk/test/Analysis/inlining/path-notes.m Modified: cf

r251289 - [analyzer] Fixed a rare crash when analyzing lambda functions.

2015-10-26 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Oct 26 08:32:26 2015 New Revision: 251289 URL: http://llvm.org/viewvc/llvm-project?rev=251289&view=rev Log: [analyzer] Fixed a rare crash when analyzing lambda functions. Modified: cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp Modified: cfe/trunk/lib/StaticAnalyzer/

r251313 - [analyzer] Added a missing test case for r251289.

2015-10-26 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Oct 26 12:42:14 2015 New Revision: 251313 URL: http://llvm.org/viewvc/llvm-project?rev=251313&view=rev Log: [analyzer] Added a missing test case for r251289. Modified: cfe/trunk/test/Analysis/lambdas.cpp Modified: cfe/trunk/test/Analysis/lambdas.cpp URL: http://llvm.

r251404 - [analyzer] Fix another crash when analyzing lambda functions.

2015-10-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Oct 27 07:36:26 2015 New Revision: 251404 URL: http://llvm.org/viewvc/llvm-project?rev=251404&view=rev Log: [analyzer] Fix another crash when analyzing lambda functions. Modified: cfe/trunk/lib/StaticAnalyzer/Core/MemRegion.cpp cfe/trunk/test/Analysis/lambdas.cpp

r251407 - [analyzer] Fix lambdas that are capturing constants.

2015-10-27 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Oct 27 08:46:39 2015 New Revision: 251407 URL: http://llvm.org/viewvc/llvm-project?rev=251407&view=rev Log: [analyzer] Fix lambdas that are capturing constants. Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngine.cpp cfe/trunk/test/Analysis/lambdas.cpp Modified

r277989 - [analyzer] Model base to derived casts more precisely.

2016-08-08 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Aug 8 04:22:59 2016 New Revision: 277989 URL: http://llvm.org/viewvc/llvm-project?rev=277989&view=rev Log: [analyzer] Model base to derived casts more precisely. Dynamic casts are handled relatively well by the static analyzer. BaseToDerived casts however are treated cons

r278006 - [analyzer] Command line option to show enabled checker list.

2016-08-08 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Aug 8 08:41:04 2016 New Revision: 278006 URL: http://llvm.org/viewvc/llvm-project?rev=278006&view=rev Log: [analyzer] Command line option to show enabled checker list. This patch adds a command line option to list the checkers that were enabled by analyzer-checker and not

[clang-tools-extra] r260212 - [clang-tidy] Replace a custom ASTMatcher with a built-in one.

2016-02-09 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 9 03:26:11 2016 New Revision: 260212 URL: http://llvm.org/viewvc/llvm-project?rev=260212&view=rev Log: [clang-tidy] Replace a custom ASTMatcher with a built-in one. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerSizeEmptyCheck.cpp Modified: cl

[clang-tools-extra] r260217 - [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812.

2016-02-09 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 9 04:20:48 2016 New Revision: 260217 URL: http://llvm.org/viewvc/llvm-project?rev=260217&view=rev Log: [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerS

[clang-tools-extra] r260503 - [clang-tidy] Add a check to find unintended semicolons that changes the semantics.

2016-02-11 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Feb 11 03:23:33 2016 New Revision: 260503 URL: http://llvm.org/viewvc/llvm-project?rev=260503&view=rev Log: [clang-tidy] Add a check to find unintended semicolons that changes the semantics. Reviewers: hokein, alexfh Differential Revision: http://reviews.llvm.org/D16535

r261632 - [analyzer] Improve pointer arithmetic checker.

2016-02-23 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 23 06:34:39 2016 New Revision: 261632 URL: http://llvm.org/viewvc/llvm-project?rev=261632&view=rev Log: [analyzer] Improve pointer arithmetic checker. This patch is intended to improve pointer arithmetic checker. From now on it only warns when the pointer arithmetic is

r268490 - [ASTMatchers] New matcher forFunction

2016-05-04 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed May 4 06:59:39 2016 New Revision: 268490 URL: http://llvm.org/viewvc/llvm-project?rev=268490&view=rev Log: [ASTMatchers] New matcher forFunction Summary: Matcher proposed in the review of checker misc-assign-operator (name pending). Its goal is to find the direct enclosi

[clang-tools-extra] r268492 - [clang-tidy] New: checker misc-unconventional-assign-operator replacing misc-assign-operator-signature

2016-05-04 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed May 4 07:02:22 2016 New Revision: 268492 URL: http://llvm.org/viewvc/llvm-project?rev=268492&view=rev Log: [clang-tidy] New: checker misc-unconventional-assign-operator replacing misc-assign-operator-signature Summary: Finds return statements in assign operator bodies wh

[clang-tools-extra] r268494 - [clang-tidy] Remove STL dependency from a test.

2016-05-04 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed May 4 07:17:55 2016 New Revision: 268494 URL: http://llvm.org/viewvc/llvm-project?rev=268494&view=rev Log: [clang-tidy] Remove STL dependency from a test. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-unconventional-assign-operator.cpp Modified: clang-tool

r264851 - [analyzer] Fix an assertion fail in hash generation.

2016-03-30 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Mar 30 05:08:59 2016 New Revision: 264851 URL: http://llvm.org/viewvc/llvm-project?rev=264851&view=rev Log: [analyzer] Fix an assertion fail in hash generation. In case the (uniqueing) location of the diagnostic is in a line that only contains whitespaces there was an asse

r264855 - [ASTMatchers] Existing matcher hasAnyArgument fixed

2016-03-30 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Mar 30 06:22:14 2016 New Revision: 264855 URL: http://llvm.org/viewvc/llvm-project?rev=264855&view=rev Log: [ASTMatchers] Existing matcher hasAnyArgument fixed Summary: A checker (will be uploaded after this patch) needs to check implicit casts. The checker needs matcher

[clang-tools-extra] r264859 - [clang-tidy] Adjust dangling references check to ASTMatcher changes.

2016-03-30 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Mar 30 07:16:09 2016 New Revision: 264859 URL: http://llvm.org/viewvc/llvm-project?rev=264859&view=rev Log: [clang-tidy] Adjust dangling references check to ASTMatcher changes. Modified: clang-tools-extra/trunk/clang-tidy/misc/DanglingHandleCheck.cpp Modified: clang-t

[clang-tools-extra] r265532 - [clang-tidy] Extension of checker misc-misplaced-widening-cast

2016-04-06 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Apr 6 07:04:51 2016 New Revision: 265532 URL: http://llvm.org/viewvc/llvm-project?rev=265532&view=rev Log: [clang-tidy] Extension of checker misc-misplaced-widening-cast Summary: Existing checker misc-misplaced-widening-cast was extended: - New use cases: casted expressio

[clang-tools-extra] r265544 - [clang-tidy] Assertion fix in misc-misplaced-widening-cast check.

2016-04-06 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Apr 6 09:49:15 2016 New Revision: 265544 URL: http://llvm.org/viewvc/llvm-project?rev=265544&view=rev Log: [clang-tidy] Assertion fix in misc-misplaced-widening-cast check. Modified: clang-tools-extra/trunk/clang-tidy/misc/MisplacedWideningCastCheck.cpp Modified: cla

r266293 - [analyzer] Make it possible to query the function name from a CallDescription.

2016-04-14 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Apr 14 06:56:28 2016 New Revision: 266293 URL: http://llvm.org/viewvc/llvm-project?rev=266293&view=rev Log: [analyzer] Make it possible to query the function name from a CallDescription. Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h M

[clang-tools-extra] r266734 - [clang-tidy] readability-container-size-empty fixes

2016-04-19 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Apr 19 08:29:05 2016 New Revision: 266734 URL: http://llvm.org/viewvc/llvm-project?rev=266734&view=rev Log: [clang-tidy] readability-container-size-empty fixes Summary: This patch fixes PR27410 and adds std::basic_string support. Reviewers: Eugene.Zelenko, hokein Subscri

[clang-tools-extra] r262601 - [clang-tidy] Documentation fixes.

2016-03-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Mar 3 04:27:32 2016 New Revision: 262601 URL: http://llvm.org/viewvc/llvm-project?rev=262601&view=rev Log: [clang-tidy] Documentation fixes. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst Modified: clang-tools-ex

[clang-tools-extra] r262615 - [clang-tidy] Do not emit warnings from misc-suspicious-semicolon when the compilation fails.

2016-03-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Mar 3 07:08:11 2016 New Revision: 262615 URL: http://llvm.org/viewvc/llvm-project?rev=262615&view=rev Log: [clang-tidy] Do not emit warnings from misc-suspicious-semicolon when the compilation fails. Added: clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semi

[clang-tools-extra] r262618 - [clang-tidy] Improve the robustness of a test.

2016-03-03 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Mar 3 07:43:23 2016 New Revision: 262618 URL: http://llvm.org/viewvc/llvm-project?rev=262618&view=rev Log: [clang-tidy] Improve the robustness of a test. Modified: clang-tools-extra/trunk/test/clang-tidy/misc-suspicious-semicolon-fail.cpp Modified: clang-tools-extra

[clang-tools-extra] r264251 - [clang-tidy] misc-assign-operator-signature checker checks return value of all assign operators

2016-03-24 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Thu Mar 24 05:12:08 2016 New Revision: 264251 URL: http://llvm.org/viewvc/llvm-project?rev=264251&view=rev Log: [clang-tidy] misc-assign-operator-signature checker checks return value of all assign operators The return value of every assign operator should be Type&, not only

[clang-tools-extra] r256504 - [clang-tidy] Fix a false positive case in ContainerSizeEmpty check.

2015-12-28 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Mon Dec 28 11:20:33 2015 New Revision: 256504 URL: http://llvm.org/viewvc/llvm-project?rev=256504&view=rev Log: [clang-tidy] Fix a false positive case in ContainerSizeEmpty check. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerSizeEmptyCheck.cpp clan

[clang-tools-extra] r258562 - [clang-tidy] Handle decayed types and other improvements in VirtualNearMiss check.

2016-01-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Jan 22 15:45:51 2016 New Revision: 258562 URL: http://llvm.org/viewvc/llvm-project?rev=258562&view=rev Log: [clang-tidy] Handle decayed types and other improvements in VirtualNearMiss check. Handle decayed types, ignore qualifiers and accessibility when considering a meth

r258572 - [analyzer] Utility to match function calls.

2016-01-22 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Jan 22 16:32:46 2016 New Revision: 258572 URL: http://llvm.org/viewvc/llvm-project?rev=258572&view=rev Log: [analyzer] Utility to match function calls. This patch adds a small utility to match function calls. This utility abstracts away the mutable keywords and the lazy i

r254394 - [analyzer] Fix IssueHash generation.

2015-12-01 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Dec 1 03:00:41 2015 New Revision: 254394 URL: http://llvm.org/viewvc/llvm-project?rev=254394&view=rev Log: [analyzer] Fix IssueHash generation. Differential Revision: http://reviews.llvm.org/D14919 Original patch by: Gyorgy Orban! Modified: cfe/trunk/include/clang/

r254718 - [analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414.

2015-12-04 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Fri Dec 4 09:02:30 2015 New Revision: 254718 URL: http://llvm.org/viewvc/llvm-project?rev=254718&view=rev Log: [analyzer] Improve modelling of nullptr_t in the analyzer. Fix PR25414. Differential Revision: http://reviews.llvm.org/D15007 Modified: cfe/trunk/lib/StaticAnal

[clang-tools-extra] r255431 - [clang-tidy] Fix PR25812.

2015-12-12 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Sat Dec 12 05:31:25 2015 New Revision: 255431 URL: http://llvm.org/viewvc/llvm-project?rev=255431&view=rev Log: [clang-tidy] Fix PR25812. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerSizeEmptyCheck.cpp clang-tools-extra/trunk/test/clang-tidy/readab

r255627 - Add a new matcher to match character types.

2015-12-15 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Dec 15 02:35:45 2015 New Revision: 255627 URL: http://llvm.org/viewvc/llvm-project?rev=255627&view=rev Log: Add a new matcher to match character types. Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp

[clang-tools-extra] r255630 - [clang-tidy] Check for suspicious string assignments.

2015-12-15 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Dec 15 02:47:20 2015 New Revision: 255630 URL: http://llvm.org/viewvc/llvm-project?rev=255630&view=rev Log: [clang-tidy] Check for suspicious string assignments. It is possible to assign arbitrary integer types to strings. Sometimes it is the result of missing to_string ca

<    1   2   3   >