Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-05-05 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 56259. apelete added a comment. [scan-build] fix warnings emitted on Clang Format code base Changes since last revision: - split patch into Format unit to ease review process. http://reviews.llvm.org/D19385 Files: lib/Format/AffectedRangeManager.cpp l

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-05-01 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55757. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revision: - lib/Format/AffectedRangeManager.cpp: fix typo in class name. http://reviews.llvm.org/D19385 Files: lib/AST/DeclObjC.cpp lib

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-05-01 Thread Apelete Seketeli via cfe-commits
apelete added a comment. Waiting for review, could someone please have a look at this one ? http://reviews.llvm.org/D19385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-05-01 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55748. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revision: - fast forward rebase on git master branch. http://reviews.llvm.org/D19385 Files: lib/AST/DeclObjC.cpp lib/Format/AffectedRan

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-28 Thread Apelete Seketeli via cfe-commits
apelete added a comment. Thanks for your reviews. http://reviews.llvm.org/D19385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-28 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55487. apelete marked 3 inline comments as done. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revision: - lib/Format/AffectedRangeManager.cpp: fix the call to AffectedRangeManager::nonPPLineAff

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-28 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55483. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revison: - lib/Format/AffectedRangeManager.h: fix declaration of nonPPLineAffected() to pass a reference to AnnotatedLine as first parameter.

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-28 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/AffectedRangeManager.cpp:103 @@ -102,1 +102,3 @@ AnnotatedLine *Line, const AnnotatedLine *PreviousLine) { + assert(Line && "does not contain any line"); + klimek wrote: > Perhaps we should change this to

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: djasper. Comment at: lib/Format/AffectedRangeManager.cpp:103 @@ -102,1 +102,3 @@ AnnotatedLine *Line, const AnnotatedLine *PreviousLine) { + assert(Line && "does not contain any line"); + Perhaps we should change this to take a Line&

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:300-301 @@ -299,3 +299,4 @@ + assert(SM && "SourceManager is NULL, cannot iterate through the diagnostics"); for (std::vector::iterator DI = Diags.begin(), LGTM ht

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55327. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revision: - lib/Format/AffectedRangeManager.cpp: moved the fixes from lib/Format/Format.cpp:AffectedRangeManager::nonPPLineAffected() here si

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-26 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55103. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Chnages since last revision: - lib/Format/Format.cpp: removed all changes, redenderd obsolete by upstream. http://reviews.llvm.org/D19385 Files: lib/AST/Dec

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-22 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/Frontend/CompilerInstance.cpp:763 @@ -762,8 +762,3 @@ Includers.push_back(std::make_pair(FindFile, FindFile->getDir())); - File = HS->LookupFile(InputFile, SourceLocation(), /*isAngled=*/false, -

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-22 Thread Apelete Seketeli via cfe-commits
apelete added inline comments. Comment at: lib/Frontend/CompilerInstance.cpp:763 @@ -762,8 +762,3 @@ Includers.push_back(std::make_pair(FindFile, FindFile->getDir())); - File = HS->LookupFile(InputFile, SourceLocation(), /*isAngled=*/false, -

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-22 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/Frontend/CompilerInstance.cpp:763 @@ -762,8 +762,3 @@ Includers.push_back(std::make_pair(FindFile, FindFile->getDir())); - File = HS->LookupFile(InputFile, SourceLocation(), /*isAngled=*/false, -

[PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-21 Thread Apelete Seketeli via cfe-commits
apelete created this revision. apelete added reviewers: rjmccall, zaks.anna, rsmith. apelete added a subscriber: cfe-commits. Herald added a subscriber: klimek. Fixing another set of "Logic error" warnings of the type "Called c++ object pointer is null" reported by Clang Static Analyzer on the fol