Fix "Logic error" warnings of the type "Called C++ object pointer is
null" reported by Clang Static Analyzer on the following file:
- lib/Format/AffectedRangeManager.cpp.
Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Paths
| Differential D19385
[scan-build] fix warnings emitted on Clang Format code base AcceptedPublic Authored by apelete on Apr 21 2016, 12:32 PM.
Details
Diff Detail Event Timeline
Comment Actions [scan-build] fix logic error warnings emitted on clang code base Chnages since last revision:
Comment Actions [scan-build] fix logic error warnings emitted on clang code base Changes since last revision:
Comment Actions [scan-build] fix logic error warnings emitted on clang code base Changes since last revison:
apelete marked 3 inline comments as done. Comment Actions[scan-build] fix logic error warnings emitted on clang code base Changes since last revision:
Comment Actions [scan-build] fix logic error warnings emitted on clang code base Changes since last revision:
Comment Actions [scan-build] fix logic error warnings emitted on clang code base Changes since last revision:
Comment Actions [scan-build] fix warnings emitted on Clang Format code base Changes since last revision:
This revision is now accepted and ready to land.Oct 4 2016, 11:32 PM
Revision Contents
Diff 55748 lib/AST/DeclObjC.cpp
lib/Format/AffectedRangeManager.h
lib/Format/AffectedRangeManager.cpp
lib/Frontend/CompilerInstance.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLookup.cpp
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Perhaps we should change this to take a Line& instead? Daniel, thoughts?