[cfe-commits] r148859 - in /cfe/trunk: lib/Analysis/FormatString.cpp lib/Analysis/PrintfFormatString.cpp lib/Analysis/ScanfFormatString.cpp test/Sema/format-strings-scanf.c test/Sema/format-strings.c
chandlerc at google.com
Tue Jan 24 15:03:56 PST 2012
On Tue, Jan 24, 2012 at 1:48 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> On Tue, Jan 24, 2012 at 09:29:54PM -0000, Ted Kremenek wrote:
> > URL: http://llvm.org/viewvc/llvm-project?rev=148859&view=rev
> > Log:
> > Teach scanf/printf checking about '%Ld' and friends (a GNU extension).
> Fixes PR 9466.
> Can we please stop adding GNU extensions for scanf/printf until they have
> a proper options to request them?
I don't understand, what options do you want?
If you would like some ability to enforce strictness, I think ext-warn and
other such diagnostics for use of extensions might be an option. Propose an
actual feature with patches?
> At the moment, I consider this more
> harmful than complaining about them unconditionally.
Clang does aim for compatibility, and this is nothing new. I think it is
very reasonable for folks to get Clang to not warn on correctly behaving
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits