aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/FormatString.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-09-13Format strings: offer a fixit for Darwin's %D/%U/%O to ISO %d/%u/%o.Jordan Rose1-0/+23
2012-09-13Format strings: %D, %U, and %O are valid on Darwin (same as %d, %u, %o).Jordan Rose1-0/+12
2012-09-08Format strings: suggest %lld instead of %qd and %Ld with -Wformat-non-iso.Jordan Rose1-11/+3
2012-09-08Format strings: %Ld isn't available on Darwin or Windows.Jordan Rose1-3/+27
2012-08-07Remove ScanfArgType and bake that logic into ArgType.Hans Wennborg1-18/+48
2012-08-07Rename analyze_format_string::ArgTypeResult to ArgTypeHans Wennborg1-10/+10
2012-07-31-Wformat: better handling of qualifiers on pointer argumentsHans Wennborg1-0/+7
2012-07-27Make -Wformat walk the typedef chain when looking for size_t, etc.Hans Wennborg1-0/+34
2012-06-04Teach printf/scanf about enums with fixed underlying types.Jordan Rose1-0/+6
2012-05-08Make -Wformat accept printf("%hhx", c); with -funsigned-charHans Wennborg1-2/+1
2012-05-04Fix handling of wint_t - we can't assume wint_t is purely an integer promotio...James Molloy1-10/+10
2012-03-15Support '%p' format specifier with block pointers.Ted Kremenek1-1/+1
2012-03-09-Wformat-non-iso: warn about positional arguments (pr12017)Hans Wennborg1-0/+3
2012-02-22Warn about non-standard format strings (pr12017)Hans Wennborg1-0/+71
2012-02-16Format string analysis: give 'q' its own enumerator.Hans Wennborg1-3/+6
2012-02-06Tweak format string checking to work with %@ and ObjC toll-free bridging. <r...Ted Kremenek1-3/+17
2012-01-31Format string warnings: don't a.k.a. wchar_t with wchar_t.Hans Wennborg1-1/+1
2012-01-25Fix NSLog format string checking for %@.Ted Kremenek1-1/+2
2012-01-24Teach scanf/printf checking about '%Ld' and friends (a GNU extension). Fixes...Ted Kremenek1-0/+8
2012-01-20The 'l' length modifier makes sense with the scanlist conversion specifier.Ted Kremenek1-0/+1
2012-01-20More dead code removal (using -Wunreachable-code)David Blaikie1-7/+3
2012-01-12scanf: parse the 'm' length modifier, and check that the right argumentsHans Wennborg1-0/+21
2012-01-12scanf analysis: the 'a' length modifier is valid with a scanlistHans Wennborg1-0/+1
2011-12-28Support the 'a' scanf length modifier as an extension in C++.Hans Wennborg1-1/+1
2011-12-15Support the 'a' length modifier in scanf format strings as a C90Hans Wennborg1-1/+28
2011-12-09Make printf warnings refer to wint_t and wchar_t by nameHans Wennborg1-5/+4
2011-12-09Move definition of ConversionSpecifier::toString() to FormatString.cppHans Wennborg1-4/+41
2011-12-07Make printf warnings refer to intmax_t et al. by nameHans Wennborg1-2/+9
2011-12-02Revert r145697 and dependent patch r145702. It added a dependency fromNick Lewycky1-12/+13
2011-12-02Make conversion specifier warning refer to typedef if possible.Hans Wennborg1-13/+12
2011-10-25Tweak printf format string parsing to accept 'hh' conversion specifier to acc...Ted Kremenek1-5/+21
2011-09-23Removing a bunch of dead returns/breaks after llvm_unreachables.David Blaikie1-2/+0
2011-09-23Switch assert(0/false) llvm_unreachable.David Blaikie1-2/+2
2011-07-23remove unneeded llvm:: namespace qualifiers on some core types now that LLVM....Chris Lattner1-1/+1
2011-07-14Revert r135147 and r135075. The consensus was that this wasn't the right thi...Ted Kremenek1-14/+12
2011-07-14Add extra sanity checking in FormatString::matchesType() that we are comparin...Ted Kremenek1-3/+6
2011-07-14Reapply r135075, but modify format-strings.c and format-strings-fixit.c test ...Ted Kremenek1-10/+9
2011-07-14Revert r135075, "format string checking: long and int have the same widths on...NAKAMURA Takumi1-9/+10
2011-07-13format string checking: long and int have the same widths on 32-bit, so we sh...Ted Kremenek1-10/+9
2011-07-13Re-relax conversion specifier checking for printf format strings and conversi...Ted Kremenek1-3/+4
2011-07-13Fix inversion in argument type checking for format strings with conversion sp...Ted Kremenek1-2/+2
2011-06-28Revert r133024, "[format strings] correctly suggest correct type for '%@'Daniel Dunbar1-2/+1
2011-06-14[format strings] correctly suggest correct type for '%@' specifiers. Fixes <...Ted Kremenek1-1/+2
2010-11-06Don't warn when matching %p to nullptr.Anders Carlsson1-2/+2
2010-08-24Fix printf format string checking for '%lc' (which expects a wint_t or compat...Ted Kremenek1-0/+21
2010-08-22Detabify.Eli Friedman1-1/+1
2010-07-27Revert r109428 "Hoist argument type checking into CheckFormatHandler. This i...Michael J. Spencer1-3/+1
2010-07-26Hoist argument type checking into CheckFormatHandler. This is prep for scanf...Ted Kremenek1-1/+3
2010-07-20Move 'hasValidLengthModifier' from PrintfFormatSpecifier to FormatSpecifier.Ted Kremenek1-2/+75
2010-07-16Add most of the boilerplate support for scanf format string checking. This i...Ted Kremenek1-0/+380