llvm / llvm-project

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

checking format strings for the Python/C API #17172

Open llvmbot opened 11 years ago

llvmbot commented 11 years ago
Bugzilla Link 16798
Version unspecified
OS All
Attachments Proposed implementation
Reporter LLVM Bugzilla Contributor
CC @antonrang

Extended Description

Progress patch for checker

The checker should be able to check that the format string is well formed (matching parens, no unexpected characters, etc.), and should check that the arguments given fit the type specified in the format string.

At this time, there is no way to check the types for a variable argument list.

llvmbot commented 11 years ago

See http://docs.python.org/3.1/c-api/arg.html for details on the format strings.