[llvm-bugs] [Bug 28853] New: Static Analyzer is not warning about analyzer options that aren't used.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 4 15:22:25 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28853

            Bug ID: 28853
           Summary: Static Analyzer is not warning about analyzer options
                    that aren't used.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: teemperor at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Current behavior: The following command would start the unix.Malloc checker and
is setting the "Foo" option for that checker. The "Foo" option however is not a
valid option and is just silently ignored. 

clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -analyzer-config
unix.Malloc:Foo=true foo.cpp

The expected behavior would be that the SA warns when an unknown/unused option
was specified by the user.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160804/bd2ed94b/attachment.html>


More information about the llvm-bugs mailing list