[scan-build] Fix reported logic error and api bugs

Apelete Seketeli via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 3 03:27:44 PDT 2016


Hello,

Here are a few changes that try to address some logic error bugs
reported by running scan-build over the Clang code base.

I have no background in compiler technology and I may have been trying
to fix false positives; here is a quick overview of what scan-build
reported, let me know if the fixes are relevant:

Bug Group: Logic error
Bug Type: Called C++ object pointer is null
Files: lib/Driver/Tools.cpp
    
Bug Group: Logic error
Bug Type: Called C++ object pointer is null
Files: lib/Sema/SemaInit.cpp

Bug Group: API
Bug Type: Argument with 'nonnull' attribute passed null
Files: lib/AST/NestedNameSpecifier.cpp

Cheers.
-- 
        Apelete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-build-clang-errors.patch
Type: text/x-diff
Size: 2566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160403/f5bb9c10/attachment.patch>


More information about the cfe-commits mailing list