llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.26k stars 12.09k forks source link

Static Analyzer is not warning about analyzer options that aren't used. #29223

Open Teemperor opened 8 years ago

Teemperor commented 8 years ago
Bugzilla Link 28853
Version trunk
OS Linux

Extended Description

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.

Teemperor commented 8 years ago

assigned to @tkremenek