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@seketeli.net>
Can you switch this around and check for log first? We generally don't like to do any work that the log might do if there's no log, and also it makes it easier to see that this whole block is only for logging.