[Lldb-commits] [PATCH] D19086: [clang-analyzer] fix warnings emitted on lldb code base

Apelete Seketeli via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 13 17:18:13 PDT 2016


apelete created this revision.
apelete added a subscriber: lldb-commits.

The following warnings were reported while running clang analyzer on
LLDB code base:

API: argument with 'nonnull' attribute passed null, on file:
- source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp.

Dead store: dead assignement, on file:
- source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp.

Logic error: branch condition evaluates to a garbage value, on file:
- source/Core/DynamicLoader.cpp

Logic error: called C++ object pointer is null, on files:
- source/API/SBThread.cpp,
- source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp,
- source/DataFormatters/VectorType.cpp (22 warnings in cpp file,
  suppressed in custom assertion handler in
  include/lldb/Utility/LLDBAssert.h),
- source/Core/FormatEntity.cpp.

(please note that first revision was sent only to lldb-commits mailing
list, not reviewed yet).

Signed-off-by: Apelete Seketeli <apelete at seketeli.net>

http://reviews.llvm.org/D19086

Files:
  include/lldb/Utility/LLDBAssert.h
  source/API/SBThread.cpp
  source/Core/DynamicLoader.cpp
  source/Core/FormatEntity.cpp
  source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp
  source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19086.53646.patch
Type: text/x-patch
Size: 5507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160414/6bd5883b/attachment.bin>


More information about the lldb-commits mailing list