llvm / llvm-project

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

"scan-build" needs a grouping of options so that, e.g., "-vvv" instead of "-v -v -v" will work #8576

Open llvmbot opened 14 years ago

llvmbot commented 14 years ago
Bugzilla Link 8204
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @belkadan,@tkremenek,@xuzhongxing

Extended Description

Most GNU programs allow for grouping single character options without arguments but at the moment "scan-build" does not. One should be able to enter "-vvv" instead of "-v -v -v".

tkremenek commented 14 years ago

Using one of the Perl option handling modules might ease the maintenance and extension of scan-build (and other Perl programs). Professor Damian Conway discusses several in his book "Perl Best Practices" in Chapter 14 which is entirely devoted to command-line processing.

Point well taken, but scan-build probably just needs to be rewritten entirely. It does a half-baked job of interposing on a build, and doesn't really provide a general infrastructure for plugging in various handlers for doing post-processing of analysis results (for integration in various processes). We can do micro improvements like this, but the thing really just needs to die.

llvmbot commented 14 years ago

Using one of the Perl option handling modules might ease the maintenance and extension of scan-build (and other Perl programs). Professor Damian Conway discusses several in his book "Perl Best Practices" in Chapter 14 which is entirely devoted to command-line processing.

llvmbot commented 14 years ago

assigned to @tkremenek